@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  color: #f1f5f9;
  overflow-x: hidden;
  background: #04060c;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(0, 229, 204, 0.22), transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 110%, rgba(20, 184, 166, 0.15), transparent 45%),
    linear-gradient(165deg, #030508 0%, #0a1018 40%, #060a12 100%);
}

.auth-grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(0, 229, 204, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 204, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.auth-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  animation: authOrbFloat 12s ease-in-out infinite;
}

.auth-orb--1 {
  width: 420px;
  height: 420px;
  background: rgba(0, 229, 204, 0.18);
  top: -120px;
  right: -80px;
}

.auth-orb--2 {
  width: 320px;
  height: 320px;
  background: rgba(20, 184, 166, 0.12);
  bottom: -80px;
  left: -60px;
  animation-delay: -4s;
}

@keyframes authOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 16px) scale(1.05); }
}

.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
}

.auth-brand {
  padding: 24px;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 204, 0.35);
  background: rgba(0, 229, 204, 0.08);
  color: #5efff0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.auth-brand h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  background: linear-gradient(135deg, #fff 0%, #00e5cc 50%, #5efff0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 420px;
  margin: 0;
}

.auth-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #cbd5e1;
}

.auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 229, 204, 0.12);
  border: 1px solid rgba(0, 229, 204, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.auth-card {
  background: rgba(12, 16, 26, 0.75);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 229, 204, 0.2);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 80px rgba(0, 229, 204, 0.06);
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
}

.auth-card-sub {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(6, 10, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: #00e5cc;
  box-shadow: 0 0 0 3px rgba(0, 229, 204, 0.2);
}

.auth-submit {
  margin-top: 8px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #042f2e;
  background: linear-gradient(135deg, #00e5cc 0%, #14b8a6 100%);
  box-shadow: 0 8px 28px rgba(0, 229, 204, 0.35);
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 229, 204, 0.45);
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.auth-footer a {
  color: #00e5cc;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-error {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 14px;
  display: none;
}

.auth-logo-link {
  position: fixed;
  top: 24px;
  left: 32px;
  z-index: 10;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: #00e5cc;
  letter-spacing: -0.02em;
}

@media (max-width: 900px) {
  .auth-wrap {
    grid-template-columns: 1fr;
    padding: 80px 20px 40px;
  }
  .auth-brand {
    text-align: center;
  }
  .auth-brand p,
  .auth-features {
    margin-left: auto;
    margin-right: auto;
  }
}
