* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #172033;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(47, 128, 237, 0.10),
            transparent 32rem
        ),
        linear-gradient(
            145deg,
            #f7f9fc 0%,
            #eef2f8 100%
        );
}

.page-shell {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 32px 20px;
}

.login-card {
    width: min(920px, 100%);

    display: grid;
    grid-template-columns:
        minmax(280px, 0.9fr)
        minmax(320px, 1.1fr);

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(20, 36, 68, 0.08);

    border-radius: 24px;

    box-shadow:
        0 24px 70px
        rgba(26, 42, 74, 0.12);

    overflow: hidden;
}

.brand {
    min-height: 480px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 48px 42px;

    background:
        linear-gradient(
            160deg,
            var(--ce-primary),
            #18213a
        );

    color: #ffffff;
}

.brand-logo {
    width: 190px;
    height: 190px;

    object-fit: contain;

    margin-bottom: 30px;

    background: #ffffff;

    padding: 12px;

    border-radius: 24px;

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.20);
}

.organization {
    margin: 0 0 10px;

    font-size: 0.88rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    opacity: 0.82;
}

.brand h1 {
    margin: 0;

    font-size: clamp(
        1.65rem,
        3vw,
        2.35rem
    );

    line-height: 1.12;
}

.election {
    margin: 16px 0 0;

    font-size: 1rem;

    opacity: 0.82;
}

.divider {
    display: none;
}

.system-entry {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 56px;
}

.eyebrow {
    margin-bottom: 10px;

    color: var(--ce-accent);

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.system-entry h2 {
    margin: 0;

    color: var(--ce-primary);

    font-size: 2rem;
}

.description {
    margin: 18px 0 30px;

    color: #606b80;

    font-size: 1rem;
    line-height: 1.65;
}

.status-row {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #344057;

    font-size: 0.92rem;
    font-weight: 650;
}

.status-dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #2fb171;

    box-shadow:
        0 0 0 4px
        rgba(47, 177, 113, 0.14);
}

.election-date {
    margin: 24px 0 0;

    color: #68748a;

    font-size: 0.9rem;
}

.login-placeholder {
    margin-top: 34px;

    padding: 16px 18px;

    border:
        1px dashed
        rgba(47, 128, 237, 0.34);

    border-radius: 12px;

    color: #647089;

    background:
        rgba(47, 128, 237, 0.045);

    text-align: center;

    font-size: 0.88rem;
}

footer {
    margin-top: 22px;

    color: #788397;

    font-size: 0.78rem;
}

@media (max-width: 760px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .brand {
        min-height: auto;

        padding: 38px 28px;
    }

    .brand-logo {
        width: 140px;
        height: 140px;
    }

    .system-entry {
        padding: 38px 28px;
    }
}

/* ===== AUTH ===== */

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

    display: grid;
    grid-template-columns:
        minmax(300px, 0.9fr)
        minmax(340px, 1.1fr);

    overflow: hidden;

    border-radius: 24px;

    background: #fff;

    box-shadow:
        0 24px 70px
        rgba(26, 42, 74, 0.14);
}

.auth-brand {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 500px;

    padding: 50px 40px;

    text-align: center;

    color: #fff;

    background:
        linear-gradient(
            155deg,
            #263553,
            #131b30
        );
}

.auth-logo {
    width: 175px;
    height: 175px;

    object-fit: contain;

    padding: 10px;

    margin-bottom: 28px;

    background: #fff;

    border-radius: 22px;
}

.auth-brand h1 {
    margin: 0;

    font-size: 2rem;
}

.auth-brand p {
    opacity: 0.75;
}

.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 56px;
}

.auth-form-panel h2 {
    margin:
        0
        0
        30px;

    font-size: 2rem;

    color: #27314f;
}

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

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 0.88rem;
    font-weight: 700;

    color: #39445a;
}

.form-group input {
    width: 100%;

    padding: 14px 15px;

    border:
        1px solid
        #d7ddea;

    border-radius: 10px;

    font-size: 1rem;

    outline: none;
}

.form-group input:focus {
    border-color: #2f80ed;

    box-shadow:
        0 0 0 3px
        rgba(47, 128, 237, 0.10);
}

.primary-button {
    width: 100%;

    padding: 15px;

    border: 0;

    border-radius: 10px;

    cursor: pointer;

    color: #fff;

    background: #27314f;

    font-weight: 700;
    font-size: 1rem;
}

.alert {
    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 9px;

    font-size: 0.9rem;
}

.alert-error {
    color: #8e2430;

    background: #fff0f1;

    border:
        1px solid
        #f2c6ca;
}

.field-error {
    margin-top: 5px;

    color: #a02734;

    font-size: 0.78rem;
}

/* ===== DASHBOARD ===== */

.dashboard-shell {
    min-height: 100vh;

    background: #f5f7fb;
}

.dashboard-header {
    min-height: 84px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 16px 32px;

    background: #fff;

    border-bottom:
        1px solid
        #e5e9f1;
}

.dashboard-brand,
.dashboard-user {
    display: flex;

    align-items: center;

    gap: 14px;
}

.dashboard-brand img {
    width: 52px;
    height: 52px;

    object-fit: contain;
}

.dashboard-brand small,
.dashboard-user small {
    display: block;

    margin-top: 4px;

    color: #768196;
}

.logout-button {
    margin-left: 14px;

    padding: 9px 14px;

    border:
        1px solid
        #d2d8e4;

    border-radius: 8px;

    background: #fff;

    cursor: pointer;
}

.dashboard-content {
    width: min(1100px, 92%);

    margin: 60px auto;

    padding: 45px;

    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 15px 45px
        rgba(32, 49, 80, 0.07);
}

.dashboard-content h1 {
    margin:
        8px
        0
        14px;

    color: #27314f;
}

.dashboard-status {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 30px;

    font-weight: 650;
}

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

    .auth-brand {
        min-height: auto;

        padding: 35px 25px;
    }

    .auth-logo {
        width: 125px;
        height: 125px;
    }

    .auth-form-panel {
        padding: 38px 26px;
    }

    .dashboard-header {
        align-items: flex-start;

        gap: 20px;

        flex-direction: column;
    }
}

.public-login-button {
    display: block;

    margin-top: 34px;

    padding: 15px 18px;

    border-radius: 11px;

    color: #ffffff;

    background: var(--ce-primary);

    text-decoration: none;

    text-align: center;

    font-size: 0.95rem;
    font-weight: 750;

    transition:
        transform 120ms ease,
        box-shadow 120ms ease,
        opacity 120ms ease;
}

.public-login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 9px 22px
        rgba(32, 49, 80, 0.15);

    opacity: 0.96;
}
