.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-primary); padding: 1.25rem; }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-logo { display: flex; align-items: center; gap: .6rem; color: var(--text-primary); text-decoration: none; font-weight: 700; font-size: 1rem; margin-bottom: 2rem; justify-content: center; }
.auth-logo svg { color: var(--accent); }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; }
.auth-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 .4rem; }
.auth-sub { color: var(--text-muted); margin: 0 0 1.75rem; font-size: .95rem; }

/* OAuth buttons */
.oauth-stack { display: flex; flex-direction: column; gap: .75rem; }
.oauth-btn {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: var(--text-primary);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: all .15s;
  position: relative;
}
.oauth-btn:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); text-decoration: none; }
.oauth-github { border-color: rgba(255,255,255,.15); }
.oauth-github:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.oauth-recommended {
  margin-left: auto;
  background: #6366f1;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.oauth-google:hover { border-color: #4285F4; background: rgba(66,133,244,.07); }
.oauth-apple:hover { border-color: #fff; }

/* Divider */
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--text-muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Form */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .4rem; color: var(--text-muted); }
.form-group input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 10px; padding: .7rem 1rem;
  color: var(--text-primary); font-size: .95rem;
  outline: none; transition: border-color .15s;
}
.form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.form-group input::placeholder { color: var(--text-muted); }
.auth-submit { margin-top: .5rem; }
.btn-block { width: 100%; justify-content: center; }
.auth-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #ef4444; padding: .75rem 1rem; border-radius: 10px; font-size: .9rem; margin-bottom: 1rem; }
.auth-switch { text-align: center; color: var(--text-muted); font-size: .9rem; margin-top: 1.5rem; margin-bottom: 0; }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* Download btn for account page */
.download-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #f59e0b; color: #000; font-weight: 700;
    padding: .75rem 1.5rem; border-radius: 10px; border: none;
    cursor: pointer; font-size: .95rem; text-decoration: none;
    transition: background 0.15s;
}
.download-btn:hover { background: #fbbf24; text-decoration: none; }

/* Verify prompt */
.verify-prompt { text-align: center; padding: 1rem 0; }
.verify-icon { font-size: 3rem; margin-bottom: 1rem; }
.verify-prompt h2 { margin: 0 0 .75rem; font-size: 1.4rem; }
.verify-prompt p { color: var(--text-muted); margin: 0 0 .5rem; line-height: 1.5; }
.verify-prompt p strong { color: var(--text-primary); }

/* 6-digit code entry (used on signup page) */
.verify-code-inputs { display: flex; gap: .6rem; margin-bottom: 1rem; justify-content: center; }
.code-digit {
  width: 46px; height: 56px;
  background: var(--bg-primary); border: 2px solid var(--border);
  border-radius: 12px; text-align: center;
  font-size: 1.5rem; font-weight: 700; font-family: monospace;
  color: var(--text-primary); outline: none;
  transition: border-color .15s;
}
.code-digit:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
.shake { animation: shake .4s ease; }

/* ── MOBILE ── */
@media (max-width: 480px) {
  .auth-card { padding: 1.5rem 1.25rem; }
  .auth-wrap { padding: 1rem; }
  .oauth-btn { padding: 0.75rem; font-size: 0.85rem; }
  .verify-code-inputs { gap: 0.35rem; }
  .code-digit { width: 40px; height: 48px; font-size: 1.3rem; }
}
