/**
 * auth.css
 * Shared styles for all auth pages (login, register, forgot/reset password, verify).
 * Auth pages are always light-mode — no toggle.
 */

/* ── DM Sans — self-hosted ──────────────────────────────────────────── */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('/assets/fonts/dm-sans/dm-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/dm-sans/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/dm-sans/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/dm-sans/dm-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/dm-sans/dm-sans-latin-700-normal.woff2') format('woff2'); }

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: #dce6f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

.auth-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.auth-container--wide {
    max-width: 440px;
}

.auth-container--center {
    text-align: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.auth-header p {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Form elements ── */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
    font-size: 14px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
}

/* ── Password requirements box ── */

.password-requirements {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #475569;
}

.password-requirements ul {
    margin: 8px 0 0 16px;
}

/* ── Form row (remember me + forgot link) ── */

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: #22c55e;
}

.forgot-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ── Buttons ── */

.btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary {
    background: #22c55e;
    color: #fff;
}

.btn-primary:hover {
    background: #16a34a;
}

.btn-green {
    background: #22c55e;
    color: #fff;
}

.btn-green:hover {
    background: #16a34a;
}

/* ── Alerts ── */

.error-message,
.error-msg {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.success-message,
.success-msg {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.verify-notice {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #92400e;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.verify-notice a {
    color: #b45309;
    font-weight: 600;
    text-decoration: underline;
}

/* ── Footer ── */

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #475569;
}

.auth-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

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

/* ── verify_pending extras ── */

.icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.icon.success { color: #22c55e; }
.icon.error   { color: #ef4444; }

h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

p {
    color: #475569;
    margin-bottom: 24px;
    line-height: 1.5;
}

.sub {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.email-highlight {
    display: inline-block;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin: 4px 0 20px;
}

.divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 28px 0;
}

.resend-section h2 {
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 600;
}
