:root {
    color-scheme: light;
    --background: #f2f5f4;
    --surface: #ffffff;
    --surface-soft: #f7faf9;
    --text: #17211d;
    --muted: #617068;
    --border: #d9e1dd;
    --primary: #176b55;
    --primary-dark: #0f5140;
    --primary-soft: #e6f3ee;
    --danger: #9f2f37;
    --danger-soft: #fbeaec;
    --warning: #725000;
    --warning-soft: #fff4d7;
    --shadow: 0 22px 60px rgba(21, 52, 42, 0.12);
    --radius-large: 24px;
    --radius-medium: 14px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(23, 107, 85, 0.13),
            transparent 34rem
        ),
        radial-gradient(
            circle at 92% 90%,
            rgba(81, 128, 113, 0.10),
            transparent 30rem
        ),
        var(--background);
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

.auth-layout {
    width: min(1120px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: 56px;
    padding: 48px 0;
}

.auth-introduction {
    padding: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(23, 107, 85, 0.24);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-introduction h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.01;
    letter-spacing: -0.055em;
}

.auth-introduction p {
    max-width: 640px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.75;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 38px;
}

.feature {
    padding: 18px;
    border: 1px solid rgba(23, 107, 85, 0.13);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(10px);
}

.feature strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.feature span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.auth-card {
    width: 100%;
    padding: 38px;
    border: 1px solid rgba(217, 225, 221, 0.9);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.auth-card h2 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: -0.035em;
}

.auth-card > p {
    margin: 10px 0 28px;
    color: var(--muted);
    line-height: 1.55;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 750;
}

.form-control {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(23, 107, 85, 0.12);
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 12px;
    padding: 12px 20px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 150ms ease,
        background 150ms ease,
        box-shadow 150ms ease;
}

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

.button-primary {
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(23, 107, 85, 0.22);
}

.button-primary:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

.button-secondary {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.button-danger {
    background: #ffffff;
    color: var(--danger);
    border: 1px solid #ebc9cd;
}

.alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.alert-danger {
    border: 1px solid #efc9cd;
    background: var(--danger-soft);
    color: var(--danger);
}

.alert-success {
    border: 1px solid #c8e5d9;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.alert-warning {
    border: 1px solid #ecdba8;
    background: var(--warning-soft);
    color: var(--warning);
}

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

.auth-footer a {
    font-weight: 700;
    text-decoration: none;
}

.dashboard-body {
    background: var(--background);
}

.dashboard-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 60px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 35px rgba(21, 52, 42, 0.08);
}

.dashboard-header .brand {
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-summary {
    text-align: right;
}

.user-summary strong,
.user-summary span {
    display: block;
}

.user-summary span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.83rem;
}

.dashboard-main {
    padding-top: 46px;
}

.dashboard-main h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.05em;
}

.lead {
    max-width: 700px;
    margin: 14px 0 34px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-card {
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(21, 52, 42, 0.06);
}

.card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 900;
}

.dashboard-card h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.dashboard-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.status-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--primary-dark);
    font-size: 0.87rem;
    font-weight: 750;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22a875;
    box-shadow: 0 0 0 5px rgba(34, 168, 117, 0.12);
}

.access-page {
    width: min(620px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    align-items: center;
    padding: 40px 0;
}

.access-card {
    padding: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.access-symbol {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    border-radius: 20px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 1.8rem;
    font-weight: 900;
}

.access-card h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.access-card p {
    margin: 15px auto 28px;
    color: var(--muted);
    line-height: 1.65;
}

.access-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.inline-form {
    display: inline;
    margin: 0;
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 0;
    }

    .auth-introduction {
        padding: 8px;
    }

    .auth-introduction h1 {
        font-size: clamp(2.25rem, 11vw, 4rem);
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .user-summary {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .auth-layout,
    .dashboard-shell {
        width: min(100% - 20px, 1180px);
    }

    .auth-card,
    .access-card {
        padding: 24px;
        border-radius: 18px;
    }

    .header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .header-actions .button,
    .inline-form,
    .inline-form .button {
        width: 100%;
    }
}

/* MFS_DEL12B1_AUTH_BANNER_BEGIN */
.auth-skip-link {
    position: fixed; left: 10px; top: 10px; z-index: 2000;
    transform: translateY(-180%); border-radius: 10px;
    background: var(--surface); color: var(--text); padding: 10px 14px;
    box-shadow: var(--shadow);
}
.auth-skip-link:focus { transform: none; outline: 3px solid var(--primary); outline-offset: 3px; }
.auth-build-banner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 0.3rem 0.75rem; min-height: 48px; padding: 9px 18px;
    border-bottom: 1px solid var(--border); background: var(--primary-soft);
    color: var(--text); text-align: center; font-size: 0.94rem;
}
.auth-build-banner p { margin: 0; }
.auth-build-banner a { font-weight: 750; }
.auth-build-banner + .auth-layout { min-height: calc(100vh - 48px); }
@media (max-width: 680px) { .auth-build-banner { display: grid; gap: 0.2rem; font-size: 0.9rem; } }
@media print { .auth-skip-link, .auth-build-banner { display: none !important; } }
/* MFS_DEL12B1_AUTH_BANNER_END */
