/* Zentrinet ZHost - Modern Simple UI Design */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, rgba(224, 242, 254, 0.7) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(207, 250, 254, 0.5) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(241, 245, 249, 0.8) 0px, transparent 50%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  overflow-x: hidden;
}

/* Subtle modern grid pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Login Card */
.login {
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 32px 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 
    0 4px 6px -1px rgba(15, 23, 42, 0.04),
    0 10px 15px -3px rgba(15, 23, 42, 0.03),
    0 25px 35px -10px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Top accent bar matching Zentrinet teal brand */
.login::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7 0%, #00a8b5 50%, #06b6d4 100%);
}

/* Zentrinet Logo */
.login img {
  display: block;
  margin: 0 auto 14px;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
  transition: transform 0.2s ease;
}

.login img:hover {
  transform: scale(1.015);
}

/* Subtitle */
.login h1 {
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
  letter-spacing: -0.1px;
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-shadow: none;
  line-height: 1.4;
}

.login h1::before {
  display: none !important;
  content: none !important;
}

/* Form */
.login form {
  text-align: left;
}

.login p {
  margin-bottom: 16px;
  position: relative;
}

.login label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

/* Input Fields */
.login input[type="text"],
.login input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  margin: 0;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
  background-color: #ffffff;
  border-color: #00a8b5;
  box-shadow: 0 0 0 3.5px rgba(0, 168, 181, 0.15);
}

.login input[type="text"]::placeholder,
.login input[type="password"]::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Remember me / Fast login */
.login p.remember_me {
  margin: 18px 0 22px;
  display: flex;
  align-items: center;
  float: none;
  line-height: 1;
}

.login p.remember_me label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  user-select: none;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

.login p.remember_me input[type="checkbox"] {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  accent-color: #00a8b5;
  cursor: pointer;
  margin: 0;
  vertical-align: middle;
}

/* Submit Button */
.login p.submit {
  margin: 0;
  text-align: left;
}

.login input[type="submit"] {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #00a8b5 100%);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px 0 rgba(0, 168, 181, 0.28);
  letter-spacing: 0.2px;
  text-shadow: none;
}

.login input[type="submit"]:hover {
  background: linear-gradient(135deg, #0369a1 0%, #008b96 100%);
  box-shadow: 0 6px 18px 0 rgba(0, 168, 181, 0.38);
  transform: translateY(-1px);
}

.login input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px 0 rgba(0, 168, 181, 0.25);
}

/* Error Alert */
.alert,
.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  text-align: center;
}

/* SSL Login Badge */
.login-help {
  margin-top: 20px;
  text-align: center;
}

.login-help p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: #15803d;
  margin: 0;
}

.login-help p::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2316a34a'%3E%3Cpath fill-rule='evenodd' d='M10 1a4.5 4.5 0 00-4.5 4.5V9H5a2 2 0 00-2 2v6a2 2 0 002 2h10a2 2 0 002-2v-6a2 2 0 00-2-2h-.5V5.5A4.5 4.5 0 0010 1zm3 8V5.5a3 3 0 10-6 0V9h6z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
}

.login-help a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
}

/* About / Footer */
.about {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  margin: 24px auto 0;
  text-align: center;
  padding: 0 16px;
  background: none;
  border: none;
  box-shadow: none;
}

.about-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 8px;
}

.about-links a {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.about-links a:hover {
  color: #00a8b5;
  text-decoration: underline;
}

.about-author {
  font-size: 11.5px;
  color: #94a3b8;
}

.about-author a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
}

.about-author a:hover {
  color: #00a8b5;
}
