/* Sign in / sign up / password reset: one centred card, floating-label fields, pill buttons. */
.auth { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 72px 20px 40px; background: #fff; }
.auth-card { width: 100%; max-width: 460px; padding: 40px 46px 44px; border: 1px solid #e3e6ea; border-radius: 14px; background: #fff; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 34px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.auth-brand .brand-mark { width: 34px; height: 34px; font-size: 18px; }
.auth-title { margin: -8px 0 22px; text-align: center; font-size: 15px; font-weight: 500; color: var(--ink-3); }

.auth-field { position: relative; margin-bottom: 20px; }
.auth-field input { width: 100%; height: 64px; padding: 26px 14px 8px; border: 1px solid #8d969e; border-radius: 6px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.auth-field label { position: absolute; left: 15px; top: 21px; font-size: 16px; color: #5e6c75; pointer-events: none; transition: all .12s ease; }
.auth-field input:focus { border-color: #0070e0; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0070e0; }
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label { top: 10px; font-size: 12.5px; }
.auth-field.has-error input { border-color: #d20a2e; }
.auth-field .err { margin-top: 6px; font-size: 13px; color: #d20a2e; }
.auth-field .hint { margin-top: 6px; font-size: 13px; color: #5e6c75; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-row .auth-field { margin-bottom: 20px; }
.auth-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.auth-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border: 2px solid transparent; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .12s ease, border-color .12s ease; }
.auth-btn:hover { text-decoration: none; }
.auth-btn-primary { background: #0551b5; color: #fff; margin-top: 4px; }
.auth-btn-primary:hover { background: #003d91; color: #fff; }
.auth-btn-outline { background: #fff; color: #111; border-color: #111; }
.auth-btn-outline:hover { background: #f4f5f6; color: #111; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: #5e6c75; font-size: 15px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #d5d9dd; }
.auth-link { display: inline-block; margin: -6px 0 18px; font-size: 15px; font-weight: 600; color: #0070e0; }
.auth-alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.4; }
.auth-alert-error { background: #fdecef; color: #8c0a20; border: 1px solid #f4b6c1; }
.auth-alert-success { background: #e9f8ef; color: #12633a; border: 1px solid #a9dfbf; }
.auth-alert-warning, .auth-alert-info { background: #fff6e0; color: #7a5300; border: 1px solid #f0d49a; }
.auth-fine { margin: 18px 0 0; text-align: center; font-size: 13px; color: #5e6c75; }

@media (max-width: 520px) {
  .auth { padding: 24px 14px; }
  .auth-card { padding: 28px 22px 32px; border: 0; }
  .auth-row { grid-template-columns: 1fr; gap: 0; }
}
