:root {
  --auth-glass: rgba(255, 255, 255, 0.82);
  --auth-glass-border: rgba(255, 255, 255, 0.65);
  --auth-text: #0f172a;
  --auth-text-muted: #334155;
  --auth-line: rgba(15, 23, 42, 0.35);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body.auth-page {
  font-family: var(--font-body);
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
}

.auth-video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.auth-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 10, 24, 0.35) 0%, rgba(5, 10, 24, 0.15) 40%, rgba(5, 10, 24, 0.45) 100%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(15, 23, 42, 0.08) 0%, rgba(5, 10, 24, 0.35) 100%);
  pointer-events: none;
}

.auth-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 48px;
}

.auth-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.auth-nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.auth-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.auth-nav-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.auth-nav-links a:hover {
  opacity: 0.75;
}

.auth-nav-cta {
  padding: 10px 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.auth-nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
}

.auth-nav-cta.is-active {
  background: rgba(255, 255, 255, 0.18);
}

.auth-main {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 96px);
  padding: 24px 20px 48px;
}

.auth-glass-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 44px 42px 36px;
  border-radius: 22px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.78) 100%
  );
  border: 1px solid var(--auth-glass-border);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-close:hover {
  background: rgba(15, 23, 42, 0.75);
  transform: scale(1.04);
}

.auth-card-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--auth-text);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.auth-card-subtitle {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--auth-text-muted);
  line-height: 1.5;
  margin: -18px 0 28px;
}

.form-group {
  margin-bottom: 26px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--auth-text);
  margin-bottom: 10px;
}

.field-underline {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid var(--auth-line);
  transition: border-color 0.2s ease;
}

.field-underline:focus-within {
  border-color: rgba(15, 23, 42, 0.7);
}

.field-underline input {
  flex: 1;
  width: 100%;
  padding: 8px 36px 10px 0;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--auth-text);
  outline: none;
}

.field-underline input::placeholder {
  color: rgba(51, 65, 85, 0.62);
  font-weight: 400;
}

.field-icon {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: 20px;
  height: 20px;
  color: var(--auth-text);
  opacity: 0.85;
  pointer-events: none;
}

.field-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.toggle-eye {
  position: absolute;
  right: 0;
  bottom: 6px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--auth-text);
  opacity: 0.8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s ease;
}

.toggle-eye:hover {
  opacity: 1;
}

.toggle-eye svg {
  width: 18px;
  height: 18px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: #0f172a;
  cursor: pointer;
}

.remember label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--auth-text-muted);
  cursor: pointer;
}

.forgot-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--auth-text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.forgot-link:hover {
  color: var(--auth-text);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.btn-submit:hover:not(:disabled) {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-divider {
  margin: 22px 0 16px;
  text-align: center;
  color: var(--auth-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-line);
}

#google-login-wrap,
#google-register-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

.google-hint {
  display: none;
  text-align: center;
  color: var(--auth-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 10px;
}

.error-msg {
  display: none;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  text-align: center;
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.85);
}

.success-msg {
  display: none;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  text-align: center;
  color: #047857;
  background: rgba(209, 250, 229, 0.85);
}

.auth-link {
  margin-top: 22px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--auth-text-muted);
}

.auth-link a {
  color: var(--auth-text);
  font-weight: 700;
  text-decoration: none;
}

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

.success-msg a {
  color: #047857;
  font-weight: 700;
  text-decoration: none;
}

.success-msg a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .auth-nav {
    padding: 20px 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .auth-nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
  }

  .auth-nav-cta {
    margin-left: auto;
  }

  .auth-glass-card {
    padding: 38px 28px 30px;
    max-width: 100%;
  }

  .auth-card-title {
    font-size: 1.75rem;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .auth-nav-logo {
    font-size: 1.15rem;
  }

  .auth-nav-links a {
    font-size: 0.88rem;
  }

  .auth-main {
    min-height: calc(100vh - 120px);
    padding: 16px 16px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-video-bg {
    display: none;
  }

  body.auth-page {
    background: #0c1222;
  }
}
