:root {
  color-scheme: light;
  --bg: linear-gradient(135deg, #f8fafc, #eef2ff);
  --card-bg: #ffffff;
  --text: #0f172a;
  --muted: #4b5563;
  --soft: #e5e7eb;
  --primary: #1d4ed8;
  --primary-strong: #1e3a8a;
  --success: #16a34a;
  --error: #b91c1c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-shell {
  width: min(440px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.login-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 26px 28px;
  border: 1px solid #eef2ff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #1f2937;
  margin-bottom: 4px;
}

.auth-logo-img {
  width: 120px;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.auth-tagline {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: #374151;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.auth-tagline .tagline-part.listen {
  font-style: italic;
  font-weight: 200;
}

.auth-tagline .tagline-part.capture {
  font-weight: 500;
}

.auth-tagline .tagline-part.respond {
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

.login-header h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
}

.mode-btn {
  border: none;
  background: transparent;
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mode-btn.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.18);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  color: var(--muted);
}

.form-field input {
  border: 1px solid var(--soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-field input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.35);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 12px;
}

.forgot-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 4px 0 10px;
}
.link-btn {
  border: none;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.link-btn:hover,
.link-btn:focus-visible {
  text-decoration: underline;
}
.forgot-status {
  margin: 0;
  font-size: 12px;
  color: #475569;
  white-space: pre-line;
}

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

.remember input {
  width: 16px;
  height: 16px;
}

.form-hint {
  color: #94a3b8;
}

.primary-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(120deg, var(--primary), #33b3ff);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.28);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

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

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.google-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  border-color: #cbd5f5;
}

.google-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.google-icon {
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='%23EA4335' d='M24 9.5c3.5 0 6.6 1.2 9.1 3.6l6.8-6.8C35.8 2.5 30.3 0 24 0 14.6 0 6.4 5.4 2.5 13.3l7.9 6.1C12.5 13 17.8 9.5 24 9.5z'/><path fill='%234285F4' d='M46.1 24.6c0-1.7-.2-3.4-.5-5H24v9.5h12.4c-.5 2.8-2.1 5.2-4.5 6.8l6.9 5.4c4-3.7 6.3-9.2 6.3-15.7z'/><path fill='%2334A853' d='M10.4 28.6c-1-2.8-1-5.8 0-8.6l-7.9-6.1C-.9 19-1 29 3.1 36.2l7.3-7.6z'/><path fill='%23FBBC05' d='M24 48c6.3 0 11.6-2.1 15.5-5.7l-6.9-5.4c-1.9 1.3-4.4 2-8.6 2-6.2 0-11.4-3.5-13.6-8.8l-7.3 7.6C6.9 43.1 14.9 48 24 48z'/></svg>");
}

.notice-banner {
  margin: 12px 0 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.notice-banner[hidden] {
  display: none;
}

.notice-banner[data-variant="error"] {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #b91c1c;
}

.banner-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}

.banner-close:hover,
.banner-close:focus-visible {
  text-decoration: underline;
}

.inline-status,
.inline-error {
  margin: 0;
  font-size: 13px;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  display: none;
}

.inline-status[data-visible="true"] {
  display: block;
  color: var(--success);
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.resend-block {
  margin: 4px 0 2px;
  padding: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.resend-block[hidden] {
  display: none !important;
}
.resend-text {
  margin: 0;
  font-size: 13px;
  color: #475569;
}
.resend-link {
  border: none;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0 2px;
}
.resend-link:hover,
.resend-link:focus-visible {
  text-decoration: underline;
}
.resend-status {
  font-size: 12px;
  color: #475569;
}

.inline-error[data-visible="true"] {
  display: block;
  color: var(--error);
  border-color: #fecdd3;
  background: #fff1f2;
}

.fine-print {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

[data-hidden="true"] {
  display: none;
}

@media (max-width: 520px) {
  body {
    padding: 12px;
  }

  .login-card {
    padding: 22px 20px;
  }
}
