@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --auth-primary: #2563eb;
    --auth-text: #172033;
    --auth-muted: #64748b;
    --auth-line: #dce6f0;
    --auth-bg: #f4f7fb;
}

* {
    box-sizing: border-box;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.auth-visual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 42px;
    background: linear-gradient(135deg, #111827, #1d4ed8);
    color: #ffffff;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
}

.auth-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e0f2fe;
    color: #075985;
}

.auth-hero h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.04;
}

.auth-hero p {
    max-width: 560px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 16px;
    line-height: 1.7;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
}

.auth-feature i {
    color: #86efac;
}

.auth-dashboard-card {
    max-width: 620px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.auth-dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.auth-dots {
    display: flex;
    gap: 6px;
}

.auth-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #bfdbfe;
}

.auth-bars {
    display: grid;
    gap: 10px;
}

.auth-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.auth-bar span {
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: inherit;
    background: #93c5fd;
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #ffffff;
}

.auth-card {
    width: min(100%, 460px);
}

.auth-card-wide {
    width: min(100%, 540px);
}

.auth-card h2 {
    margin: 0;
    color: var(--auth-text);
    font-size: 30px;
    font-weight: 800;
}

.auth-card p {
    margin: 8px 0 0;
    color: var(--auth-muted);
    line-height: 1.6;
}

.auth-form {
    margin-top: 26px;
}

.auth-form.compact {
    margin-top: 14px;
}

.auth-form label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.auth-input {
    position: relative;
    margin-bottom: 16px;
}

.auth-input i {
    position: absolute;
    left: 13px;
    top: 50%;
    color: var(--auth-muted);
    transform: translateY(-50%);
}

.auth-input input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    color: var(--auth-text);
    outline: none;
}

.auth-input input:focus {
    border-color: rgba(37, 99, 235, 0.58);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 20px;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 700;
}

.auth-terms {
    margin: 2px 0 18px;
}

.auth-link {
    color: var(--auth-primary);
    font-weight: 800;
    text-decoration: none;
}

.auth-btn {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-primary);
    color: #ffffff;
    font-weight: 800;
}

.auth-btn-secondary {
    border: 1px solid var(--auth-line);
    background: #ffffff;
    color: var(--auth-text);
}

.auth-alert {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.auth-alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.auth-alert.success {
    background: #dcfce7;
    color: #166534;
}

.auth-footer {
    margin-top: 24px;
    color: var(--auth-muted);
    font-size: 13px;
    text-align: center;
}

.auth-footer-sub {
    margin-top: 8px;
}

.auth-muted {
    color: var(--auth-muted);
    font-weight: 700;
}

.password-rules {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.8;
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: auto;
        padding: 30px 22px;
    }

    .auth-dashboard-card {
        display: none;
    }

    .auth-form-side {
        padding: 28px 18px;
    }
}

@media (max-width: 575.98px) {
    .auth-feature-grid {
        grid-template-columns: 1fr;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
