/* ─────────────────────────────────────────────────────────────────
   Auth pages — login / forgot / signup
   Frame-less, centered column, identical layout on web + mobile.
   ───────────────────────────────────────────────────────────────── */

html, body.login-page { overflow-x: hidden; width: 100%; }
body.login-page {
  display: block !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100vw;
  background: var(--bg);
}

.login-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 72px 24px 48px;
  box-shadow: none;
}

.login-brand {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-bottom: 40px;
}
.login-mark {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.login-name {
  font-family: var(--display);
  font-size: 20px; font-weight: 800; letter-spacing: -0.4px;
  color: var(--text);
}

.login-head { text-align: center; margin-bottom: 32px; }
.login-head h1 {
  font-family: var(--display);
  font-size: 24px; font-weight: 700; letter-spacing: -0.4px;
  margin: 0 0 8px;
}
.login-head p {
  margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.55;
}

.btn-google {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px;
  background: #fff; color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, box-shadow 0.14s, transform 0.12s;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.btn-google:active { transform: translateY(1px); }
.btn-google svg { flex-shrink: 0; }

.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  color: var(--text-mute);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.login-field { margin-bottom: 12px; }
.login-field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-dim); margin-bottom: 6px;
}
.login-field input {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.14s;
}
.login-field input:focus { border-color: var(--accent); }
.login-field input::placeholder { color: var(--text-mute); }
.login-field .hint {
  font-size: 11px; color: var(--text-mute);
  margin-top: 6px; line-height: 1.5;
}
.login-field .err {
  font-size: 11.5px; color: rgb(248, 113, 113);
  margin-top: 6px;
}

.login-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

.login-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 6px 0 18px;
  font-size: 12px;
}
.login-row a {
  color: var(--accent-deep);
  text-decoration: none; font-weight: 600;
}
.login-row a:hover { color: var(--accent); }
.login-row label {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-dim); cursor: pointer; user-select: none;
}
.login-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 4px;
  border: 1px solid var(--border2); background: transparent;
  cursor: pointer; flex-shrink: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.login-row input[type="checkbox"]:checked {
  background: var(--accent); border-color: var(--accent);
}
.login-row input[type="checkbox"]:checked::after {
  content: ''; width: 7px; height: 4px;
  border-left: 1.6px solid #0A0B0D; border-bottom: 1.6px solid #0A0B0D;
  transform: rotate(-45deg) translate(0.5px, -0.5px);
}

.btn-primary-amber {
  width: 100%;
  padding: 13px 16px;
  background: var(--accent); color: #0A0B0D;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-family: var(--display);
  font-size: 14px; font-weight: 700; letter-spacing: -0.1px;
  cursor: pointer;
  transition: background 0.14s, transform 0.12s;
}
.btn-primary-amber:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-primary-amber:active { transform: translateY(1px); }
.btn-primary-amber:disabled {
  opacity: 0.45; cursor: not-allowed;
  background: var(--accent); border-color: var(--accent);
}

.login-terms {
  margin: 8px 0 18px;
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-dim); line-height: 1.5;
}
.login-terms input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 4px;
  border: 1px solid var(--border2); background: transparent;
  cursor: pointer; flex-shrink: 0; margin: 2px 0 0 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.login-terms input[type="checkbox"]:checked {
  background: var(--accent); border-color: var(--accent);
}
.login-terms input[type="checkbox"]:checked::after {
  content: ''; width: 7px; height: 4px;
  border-left: 1.6px solid #0A0B0D; border-bottom: 1.6px solid #0A0B0D;
  transform: rotate(-45deg) translate(0.5px, -0.5px);
}
.login-terms a { color: var(--accent-deep); text-decoration: none; font-weight: 600; }
.login-terms a:hover { color: var(--accent); }

.login-foot {
  text-align: center;
  margin-top: 36px;
  font-size: 11.5px; color: var(--text-mute); line-height: 1.6;
}
.login-foot a { color: var(--text-dim); text-decoration: none; }
.login-foot a:hover { color: var(--text); }

.login-signup {
  text-align: center;
  margin-top: 24px;
  font-size: 13px; color: var(--text-dim);
}
.login-signup a {
  color: var(--accent-deep);
  text-decoration: none; font-weight: 600;
}
.login-signup a:hover { color: var(--accent); }

.login-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-size: 13px; color: var(--text-dim);
  text-decoration: none; font-weight: 500;
}
.login-back:hover { color: var(--text); }
.login-back svg { flex-shrink: 0; }

/* Success state for forgot-password — replaces the form after submit. */
.login-success {
  text-align: center;
  padding: 8px 0 4px;
}
.login-success .icon {
  width: 56px; height: 56px; border-radius: 28px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.32);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.login-success .title {
  font-family: var(--display); font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.login-success .body {
  font-size: 13px; color: var(--text-dim); line-height: 1.6;
}
.login-success .body strong { color: var(--text); }

@media (max-width: 480px) {
  .login-card { padding: 48px 20px 32px; max-width: 100%; }
  .login-head h1 { font-size: 22px; }
  /* First / last name stack on phones so the inputs stay tap-friendly. */
  .login-field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 360px) {
  .login-card { padding: 36px 16px 24px; }
}
