/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background: #f3f4f6;
    color: #111;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.text-center { text-align: center; }

/* ── Page layout ─────────────────────────────────────────────── */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* ── Card ────────────────────────────────────────────────────── */
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    padding: 36px 36px 28px;
    width: 100%;
    max-width: 420px;
}

/* ── Logo ────────────────────────────────────────────────────── */
.logo-link { display: flex; justify-content: center; margin-bottom: 28px; }
.logo { height: 36px; }

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    padding: 9px 0;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.18s;
}

.tab.active {
    background: #fff;
    color: #111;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ── Social buttons ──────────────────────────────────────────── */
.social-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    border: none;
}

.social-btn.google {
    background: #fff;
    border: 1.5px solid #d1d5db;
    color: #374151;
}
.social-btn.google:hover { background: #f9fafb; border-color: #9ca3af; }

.social-btn.facebook {
    background: #1877f2;
    color: #fff;
}
.social-btn.facebook:hover { background: #166fe5; }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ── Form fields ─────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }

.field label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.02em;
}

.field input {
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #111;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    width: 100%;
    background: #fff;
}

.field input:focus {
    border-color: #f47216;
    box-shadow: 0 0 0 3px rgba(244,114,22,0.12);
}

.field input::placeholder { color: #9ca3af; }

/* Password field with show/hide toggle */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 40px; }
.toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    display: flex;
    align-items: center;
}
.toggle-pw:hover { color: #6b7280; }

/* ── Error box ───────────────────────────────────────────────── */
.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* ── Submit button ───────────────────────────────────────────── */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: #f47216;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s;
    margin-top: 4px;
}
.submit-btn:hover:not(:disabled) { background: #e06610; }
.submit-btn:active:not(:disabled) { transform: scale(0.99); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-btn.outline {
    background: transparent;
    border: 2px solid #f47216;
    color: #f47216;
}
.submit-btn.outline:hover { background: #fff8f3; }

/* ── Forgot password ─────────────────────────────────────────── */
.forgot-wrap {
    text-align: center;
    margin-top: 14px;
}
.forgot-wrap button {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    text-decoration: underline;
}
.forgot-wrap button:hover { color: #374151; }

/* ── Reset sub-form ──────────────────────────────────────────── */
.reset-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}
.reset-form p {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 12px;
    line-height: 1.5;
}
.cancel-btn {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    text-decoration: underline;
}

/* ── Trust badges ────────────────────────────────────────────── */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}
.trust-badges span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
}

/* ── Email verification view ─────────────────────────────────── */
.verify-icon { font-size: 52px; margin-bottom: 16px; }

#view-verify h2, #view-reset-sent h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px;
}

#view-verify p, #view-reset-sent p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 8px;
}
#view-verify strong { color: #111; }
.hint { font-size: 11px !important; color: #9ca3af !important; }

#btn-back-to-login, #btn-back-from-reset { margin-top: 12px; }

/* ── Legal footer ────────────────────────────────────────────── */
.legal {
    margin-top: 20px;
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.6;
}
.legal a { color: #f47216; text-decoration: none; }
.legal a:hover { text-decoration: underline; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .card { padding: 28px 20px 22px; border-radius: 12px; }
}
