/* ============================================
   Solicitor Login / Sign Up — Meta Design System
   ============================================ */

/* Login page runs standalone — define tokens here */
:root {
    --font-primary: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --sol-primary: #0064E0;
    --sol-primary-deep: #0143B5;
    --sol-primary-soft: rgba(0, 100, 224, 0.08);
    --sol-canvas: #FFFFFF;
    --sol-surface-soft: #F5F5F5;
    --sol-hairline: #CED0D4;
    --sol-hairline-soft: #E4E6EB;
    --sol-ink-deep: #0A1317;
    --sol-ink: #1C2B33;
    --sol-charcoal: #65676B;
    --sol-slate: #8A8D91;
    --sol-steel: #BCC0C4;
    --sol-success: #31A24C;
    --sol-critical: #E41E3F;
    --r-md: 6px;
    --r-lg: 8px;
    --r-xl: 16px;
    --r-xxxl: 32px;
    --r-full: 100px;
}

/* ── Reset & Base ── */
.sol-login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font-primary);
    color: var(--sol-ink);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.sol-login-body *,
.sol-login-body *::before,
.sol-login-body *::after {
    box-sizing: border-box;
}

/* ── Clean full-screen backdrop ── */
.sol-login-backdrop {
    position: fixed;
    inset: 0;
    background: var(--sol-surface-soft);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    z-index: 0;
}

/* Decorative pseudo-elements removed for minimal Meta look */
.sol-login-backdrop::before,
.sol-login-backdrop::after {
    display: none;
}

/* ── Logo on backdrop ── */
.sol-login-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sol-ink-deep);
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-primary);
    z-index: 1;
    transition: opacity 0.2s;
}

.sol-login-logo:hover {
    opacity: 0.85;
}

.sol-login-logo i {
    font-size: 28px;
    opacity: 0.9;
}

/* ── Popup overlay ── */
.sol-login-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: var(--sp-xl);
}

/* ── Popup card ── */
.sol-login-card {
    width: 100%;
    max-width: 460px;
    background: var(--sol-canvas);
    border-radius: var(--r-xxxl);
    padding: 40px 36px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    animation: solPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes solPopIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── Tab Switcher ── */
.sol-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--sol-hairline-soft);
}

.sol-auth-tab {
    flex: 1;
    padding: var(--sp-md) 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--sol-charcoal);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    font-family: var(--font-primary);
}

.sol-auth-tab:hover {
    color: var(--sol-ink-deep);
}

.sol-auth-tab.active {
    color: var(--sol-primary);
    border-bottom-color: var(--sol-primary);
}

/* ── Alert ── */
.sol-auth-alert {
    padding: var(--sp-md) var(--sp-base);
    border-radius: var(--r-lg);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: var(--sp-lg);
    line-height: 1.5;
}

.sol-auth-alert-error {
    background: rgba(228, 30, 63, 0.06);
    color: var(--sol-critical-strong);
    border: 1px solid rgba(228, 30, 63, 0.15);
}

.sol-auth-alert-success {
    background: rgba(49, 162, 76, 0.08);
    color: var(--sol-success);
    border: 1px solid rgba(49, 162, 76, 0.2);
}

/* ── Form ── */
.sol-auth-form {
    animation: solFadeIn 0.2s ease;
}

@keyframes solFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sol-form-group {
    margin-bottom: 18px;
}

.sol-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sol-ink);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: var(--font-primary);
}

.sol-form-row {
    display: flex;
    gap: 14px;
}

.sol-form-row .sol-form-group {
    flex: 1;
}

/* ── Input wrap ── */
.sol-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sol-input-wrap > i {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: var(--sol-slate);
    pointer-events: none;
    z-index: 1;
}

.sol-input-wrap input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1.5px solid var(--sol-hairline-soft);
    border-radius: var(--r-lg);
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--sol-ink);
    background: var(--sol-surface-soft);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.sol-input-wrap input:focus {
    outline: none;
    border-color: var(--sol-primary);
    box-shadow: 0 0 0 3px var(--sol-primary-soft);
    background: var(--sol-canvas);
}

.sol-input-wrap input::placeholder {
    color: var(--sol-slate);
}

/* ── Toggle password ── */
.sol-toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sol-slate);
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
}

.sol-toggle-pw:hover {
    color: var(--sol-ink-deep);
}

/* ── Footer row ── */
.sol-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.sol-checkbox {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--sol-charcoal);
    cursor: pointer;
}

.sol-checkbox input {
    accent-color: var(--sol-primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.sol-forgot-link {
    font-size: 13px;
    color: var(--sol-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.sol-forgot-link:hover {
    color: var(--sol-primary-deep);
    text-decoration: underline;
}

/* ── Submit button ── */
.sol-btn-auth {
    width: 100%;
    padding: 13px var(--sp-lg);
    background: var(--sol-primary);
    color: var(--sol-canvas);
    border: none;
    border-radius: var(--r-full);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-xs);
    min-height: 48px;
}

.sol-btn-auth:hover:not(:disabled) {
    background: var(--sol-primary-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 100, 224, 0.25);
}

.sol-btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.sol-btn-spinner {
    font-size: 18px;
}

/* ── Switch link ── */
.sol-auth-switch {
    text-align: center;
    font-size: 14px;
    color: var(--sol-charcoal);
    margin: 18px 0 0 0;
}

.sol-auth-switch a {
    color: var(--sol-primary);
    text-decoration: none;
    font-weight: 600;
}

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

/* ── Terms ── */
.sol-auth-terms {
    text-align: center;
    font-size: 12px;
    color: var(--sol-slate);
    line-height: 1.6;
    margin: 14px 0 0 0;
}

.sol-auth-terms a {
    color: var(--sol-charcoal);
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .sol-login-card {
        padding: var(--sp-xxl) var(--sp-xl);
        border-radius: var(--r-xxl);
    }

    .sol-form-row {
        flex-direction: column;
        gap: 0;
    }

    .sol-auth-tabs {
        margin-bottom: 22px;
    }

    .sol-login-logo {
        font-size: 18px;
        padding-top: var(--sp-base);
    }
}

@media (max-height: 700px) {
    .sol-login-card {
        padding: 28px 28px;
        max-height: 88vh;
    }

    .sol-form-group {
        margin-bottom: 14px;
    }
}
