/* =============================================================
   assets/style.css — Shared stylesheet for all auth pages
   ============================================================= */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #1a3a5c;
    font-size: 15px;
    line-height: 1.5;
}

/* ── Card ─────────────────────────────────────────── */

.auth-card {
    width: 100%;
    max-width: 420px;
    border: 4px solid #1a5fa8;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.auth-card-header {
    background: #f0f6ff;
    border-bottom: 4px solid #1a5fa8;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.auth-card-header a {
    display: inline-block;
    text-decoration: none;
}

.auth-card-header img {
    height: 52px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.auth-card-header .app-name {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #1a5fa8;
    letter-spacing: 0.03em;
}

.auth-card-body {
    padding: 1.5rem;
}

.auth-card-footer {
    border-top: 4px solid #1a5fa8;
    background: #f0f6ff;
    padding: 1rem 1.5rem;
}

/* ── Step badge ───────────────────────────────────── */

.step-badge {
    display: inline-block;
    background: #1a5fa8;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.step-badge.pending  { background: #e6a817; }
.step-badge.approved { background: #2e7d3e; }

/* ── Typography ───────────────────────────────────── */

.section-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a3a5c;
    margin-bottom: 4px;
}

.section-sub {
    font-size: 12px;
    color: #888888;
    margin-bottom: 1rem;
}

/* ── Fields ───────────────────────────────────────── */

.field-wrap {
    margin-bottom: 1.1rem;
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #444444;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.field-hint {
    font-size: 11px;
    color: #888888;
    margin-bottom: 5px;
}

.field-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid #b8cfe8;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1a3a5c;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder {
    color: transparent;
}

input:focus {
    border-color: #1a5fa8;
    background: #f7fbff;
}

input.prepopulated {
    background: #f0f6ff;
    color: #1a5fa8;
    cursor: default;
}

/* ── Divider ──────────────────────────────────────── */

.divider {
    border: none;
    border-top: 0.5px solid #c8daf0;
    margin: 1rem 0;
}

/* ── CAPTCHA ──────────────────────────────────────── */

.captcha-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-image {
    background: #0d1b2a;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
    line-height: 0;
}

.captcha-image img {
    display: block;
    border-radius: 6px;
}

.captcha-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-entry input {
    width: 100px;
    letter-spacing: 0.3em;
    text-align: center;
    font-size: 18px;
}

.captcha-refresh {
    width: 34px;
    height: 34px;
    border: 2px solid #b8cfe8;
    border-radius: 8px;
    background: #f0f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.captcha-refresh:hover {
    background: #ddeeff;
}

/* ── reCAPTCHA v3 notice ──────────────────────────── */

.recaptcha-notice {
    font-size: 11px;
    color: #aaaaaa;
    text-align: center;
    margin-top: 0.75rem;
}

.recaptcha-notice a {
    color: #aaaaaa;
}

/* ── Buttons ──────────────────────────────────────── */

.btn-primary {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #1a5fa8 0%, #0e3d72 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.03em;
    box-shadow: 0 3px 0 #0a2d54;
    position: relative;
    top: 0;
    transition: top 0.08s, box-shadow 0.08s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.1rem;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e6bbf 0%, #11448a 100%);
}

.btn-primary:active {
    top: 3px;
    box-shadow: 0 0 0 #0a2d54;
}

.btn-secondary {
    width: 100%;
    padding: 11px;
    background: #f0f6ff;
    color: #1a5fa8;
    border: 2px solid #b8cfe8;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 3px 0 #b8cfe8;
    position: relative;
    top: 0;
    transition: top 0.08s, box-shadow 0.08s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.75rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #ddeeff;
}

.btn-secondary:active {
    top: 3px;
    box-shadow: 0 0 0 #b8cfe8;
}

/* ── Footer link rows ─────────────────────────────── */

.footer-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 0.5px solid #c8daf0;
}

.footer-link-row:last-child {
    border-bottom: none;
}

.footer-link-row span {
    font-size: 13px;
    color: #666666;
}

.footer-link-row a {
    font-size: 13px;
    color: #1a5fa8;
    text-decoration: none;
    font-weight: 500;
}

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

/* ── Inline links ─────────────────────────────────── */

.link-subtle {
    font-size: 12px;
    color: #1a5fa8;
    text-decoration: none;
}

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

/* ── Alert boxes ──────────────────────────────────── */

.alert {
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 1rem;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.alert-error   { background: #fde8e8; color: #8b1a1a; border: 1px solid #f5b8b8; }
.alert-success { background: #e6f4ea; color: #1a5c2a; border: 1px solid #a8d5b0; }
.alert-info    { background: #e6f0fb; color: #1a3a5c; border: 1px solid #b8cfe8; }
.alert-warning { background: #fff8e6; color: #7a5500; border: 1px solid #f5d78e; }
