.login-page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 9999;
  overflow: hidden;
}

.login-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}
.login-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
}
.login-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-2);
  bottom: -120px;
  left: -80px;
  opacity: 0.10;
}

[data-theme="light"] .login-glow-1 { opacity: 0.08; }
[data-theme="light"] .login-glow-2 { opacity: 0.06; }

.login-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.login-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: login-spin 0.7s linear infinite;
}
@keyframes login-spin {
  to { transform: rotate(360deg); }
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 48px 40px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  animation: login-card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.login-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
}
.login-brand-sep {
  width: 1px;
  height: 22px;
  background: var(--accent);
  opacity: 0.35;
}
.login-brand-sub {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 12px;
  line-height: 1.3;
}
.login-subheading {
  font-size: 14px;
  line-height: 1.6;
  color: var(--light);
  margin: 0 0 32px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.login-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #fca5a5;
  text-align: left;
}
.login-error svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #ef4444;
}
.login-error strong {
  font-weight: 600;
  color: #fca5a5;
}
[data-theme="light"] .login-error {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.06);
}
[data-theme="light"] .login-error svg {
  color: #dc2626;
}
[data-theme="light"] .login-error strong {
  color: #991b1b;
}

.login-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, box-shadow 150ms ease, transform 100ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.login-google-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}
.login-google-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.login-google-icon {
  flex-shrink: 0;
}

.login-domain-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.login-domain-note strong {
  color: var(--light);
  font-weight: 600;
}

.login-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}
.login-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 10px;
}
.login-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.login-feature-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}
.login-feature-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.login-footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
}

@media (max-width: 520px) {
  .login-card {
    margin: 0 16px;
    padding: 36px 24px 28px;
    border-radius: 16px;
  }
  .login-heading {
    font-size: 20px;
  }
}
