/* Auth pages — light Material-style (reference: Decision Canvas) */
:root {
  --surface-lowest: #f8fafc;
  --surface-low: #f1f5f9;
  --on-surface: #0f172a;
  --on-surface-variant: #475569;
  --on-surface-muted: #94a3b8;
  --outline-variant: #cbd5e1;
  --primary: #2563eb;
  --on-primary: #ffffff;
}

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-lowest);
  padding: 1rem;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--on-surface);
}

.auth-wrap {
  width: 100%;
  max-width: 400px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.landing-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-brand h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.auth-brand p {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin: 0.35rem 0 0;
}

.auth-card {
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.auth-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0;
  background: var(--surface-low);
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 0.5rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface);
  cursor: pointer;
  transition: background 0.15s;
}

.auth-google-btn:hover:not(:disabled) {
  background: #e2e8f0;
}

.auth-google-btn:disabled,
.auth-google-btn--disabled,
.auth-google-btn--disabled:hover {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--surface-low);
}

.auth-soon {
  font-size: 11px;
  font-weight: 400;
  color: var(--on-surface-muted);
}

.auth-hint {
  margin: 0 0 0.75rem;
  font-size: 12px;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.auth-divider + .auth-hint {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.auth-status-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 12px;
  line-height: 1.45;
}

.auth-status-banner--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-status-banner--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(203, 213, 225, 0.6);
}

.auth-divider span {
  font-size: 12px;
  color: var(--on-surface-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
}

.auth-input-wrap {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.auth-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface-low);
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 0.5rem;
  font-size: 13px;
  line-height: 1.25;
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-input::placeholder {
  color: var(--on-surface-muted);
}

.auth-input-wrap .auth-toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--on-surface-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
}

.auth-input-wrap .auth-toggle-pw:hover {
  color: var(--on-surface);
}

.auth-input-wrap .auth-input {
  width: 100%;
}

.auth-input.has-toggle {
  padding-right: 2.75rem;
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem;
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 0.5rem;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.auth-submit:hover:not(:disabled) {
  opacity: 0.92;
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-footer {
  text-align: center;
  font-size: 12px;
  color: var(--on-surface-muted);
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
}

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

.auth-terms a {
  color: var(--primary);
  text-decoration: none;
}

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

.auth-terms {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  font-size: 0.625rem;
  line-height: 1.4;
  color: #94a3b8;
  margin: 0.65rem 0 0;
  cursor: pointer;
}

.auth-terms input {
  margin-top: 0.1rem;
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
}

.auth-back {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 13px;
  color: var(--on-surface-variant);
  text-decoration: none;
}

.auth-back:hover {
  color: var(--primary);
}
