:root {
    --atlas-navy: #062e67;
    --atlas-navy-dark: #041f47;
    --atlas-green: #008f6a;
    --atlas-green-dark: #007458;
    --atlas-cyan: #0aa4c7;
    --atlas-text: #172b4d;
    --atlas-muted: #63758f;
    --atlas-border: #dfe6ef;
    --atlas-surface: #ffffff;
    --atlas-background: #f2f6fa;
}

body.welcome-anonymous {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 12%, rgba(10, 164, 199, 0.1), transparent 28rem),
        radial-gradient(circle at 92% 88%, rgba(0, 143, 106, 0.08), transparent 30rem),
        var(--atlas-background);
    color: var(--atlas-text);
}

body.welcome-anonymous .page-anonymous > .flex-fill {
    min-height: 100vh;
    margin-top: 0 !important;
    padding: 1.25rem !important;
}

body.welcome-anonymous .container-tight {
    width: 100%;
    max-width: 68rem !important;
    padding: 0 !important;
}

body.welcome-anonymous .container-tight > .text-center:first-child,
body.welcome-anonymous .main-content-card > .card-header:empty {
    display: none;
}

body.welcome-anonymous .main-content-card {
    overflow: hidden;
    border: 0;
    border-radius: 1.25rem;
    background: var(--atlas-surface);
    box-shadow: 0 1.5rem 4rem rgba(6, 46, 103, 0.14);
}

body.welcome-anonymous .main-content-card > .card-body {
    padding: 0;
}

.atlas-login {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(25rem, 0.96fr);
    height: min(46rem, calc(100vh - 5rem));
    min-height: 38rem;
}

.atlas-login__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 2.25rem 3rem 1.75rem;
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 8%, rgba(10, 164, 199, 0.38), transparent 17rem),
        radial-gradient(circle at 10% 90%, rgba(0, 143, 106, 0.48), transparent 20rem),
        linear-gradient(145deg, var(--atlas-navy-dark), var(--atlas-navy));
}

.atlas-login__brand::before,
.atlas-login__brand::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

.atlas-login__brand::before {
    top: -11rem;
    right: -10rem;
    width: 26rem;
    height: 26rem;
}

.atlas-login__brand::after {
    right: -5rem;
    bottom: 5rem;
    width: 15rem;
    height: 15rem;
}

.atlas-login__brand-content,
.atlas-login__institutions {
    position: relative;
    z-index: 1;
}

.atlas-login__logo {
    display: block;
    width: 13.5rem;
    height: 5.25rem;
    margin-bottom: 2.25rem;
    object-fit: contain;
    object-position: left center;
}

.atlas-login__eyebrow,
.atlas-login__access-eyebrow,
.atlas-login__institutions-label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.atlas-login__eyebrow {
    color: #78dfca;
}

.atlas-login__intro h1 {
    max-width: 28rem;
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.atlas-login__intro p {
    max-width: 29rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.7;
}

.atlas-login__features {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.atlas-login__feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
}

.atlas-login__feature i {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.6rem;
    color: #78dfca;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.05rem;
}

.atlas-login__institutions {
    margin-top: 1.5rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.96);
}

.atlas-login__institutions-label {
    margin-bottom: 0.65rem;
    color: var(--atlas-muted);
    font-size: 0.62rem;
}

.atlas-login__institutions-logos {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.atlas-login__city-logo {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.65rem;
    object-fit: contain;
}

.atlas-login__institution-divider {
    align-self: stretch;
    width: 1px;
    background: #dce4ee;
}

.atlas-login__management-logo,
.atlas-login__department-logo {
    min-width: 0;
    height: 2.65rem;
    object-fit: contain;
    object-position: left center;
}

.atlas-login__management-logo {
    width: 8.75rem;
}

.atlas-login__department-logo {
    width: 10.75rem;
}

.atlas-login__access {
    display: flex;
    align-items: center;
    padding: 2.25rem 4rem;
    background: #ffffff;
}

.atlas-login__access-inner {
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
}

.atlas-login__mobile-brand {
    display: none;
}

.atlas-login__access-header {
    margin-bottom: 2rem;
}

.atlas-login__access-eyebrow {
    color: var(--atlas-green-dark);
}

.atlas-login__access-header h2 {
    margin: 0 0 0.55rem;
    color: var(--atlas-text);
    font-size: 2rem;
    letter-spacing: -0.025em;
}

.atlas-login__access-header p,
.atlas-login__support-note {
    color: var(--atlas-muted);
}

.atlas-login__access-header p {
    margin: 0;
    line-height: 1.55;
}

.atlas-login .form-label {
    margin-bottom: 0.45rem;
    color: #263b5d;
    font-weight: 600;
}

.atlas-login__input-wrap {
    position: relative;
}

.atlas-login__input-wrap > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    color: #7c8da6;
    font-size: 1.15rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.atlas-login__input-wrap .form-control {
    height: 3.15rem;
    padding-left: 2.85rem;
    border: 1px solid var(--atlas-border);
    border-radius: 0.7rem;
    background: #fbfcfe;
    box-shadow: none;
}

.atlas-login__input-wrap .form-control:focus,
.atlas-login__source select:focus {
    border-color: var(--atlas-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 143, 106, 0.14);
}

.atlas-login__source select {
    min-height: 3.15rem;
    border-color: var(--atlas-border);
    border-radius: 0.7rem;
    background-color: #fbfcfe;
}

.atlas-login__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.25rem;
    margin: 0.15rem 0 1.25rem;
    font-size: 0.88rem;
}

.atlas-login__options .form-check {
    margin: 0;
}

.atlas-login__options a,
.atlas-login__faq a {
    color: var(--atlas-green-dark);
    font-weight: 600;
    text-decoration: none;
}

.atlas-login__options a:hover,
.atlas-login__faq a:hover {
    color: var(--atlas-navy);
    text-decoration: underline;
}

.atlas-login__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.15rem;
    border: 0;
    border-radius: 0.7rem;
    color: #ffffff;
    background: var(--atlas-green-dark);
    font-weight: 700;
    box-shadow: 0 0.65rem 1.25rem rgba(0, 116, 88, 0.18);
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.atlas-login__submit:hover,
.atlas-login__submit:focus {
    color: #ffffff;
    background: #005f49;
    box-shadow: 0 0.8rem 1.5rem rgba(0, 95, 73, 0.24);
    transform: translateY(-1px);
}

.atlas-login__faq,
.atlas-login__plugin-panel {
    margin-top: 1.25rem;
    text-align: center;
}

.atlas-login__custom-message {
    margin-bottom: 1.25rem;
}

.atlas-login__support-note {
    margin: 1.75rem 0 0;
    font-size: 0.78rem;
    text-align: center;
}

body.welcome-anonymous .container-tight > .text-muted {
    color: #7b8aa1 !important;
    font-size: 0.75rem;
}

body.welcome-anonymous .container-tight > .text-muted.mt-3 {
    margin-top: 0.5rem !important;
}

@media (max-width: 991.98px) {
    body.welcome-anonymous .page-anonymous > .flex-fill {
        padding: 1.25rem !important;
    }

    body.welcome-anonymous .container-tight {
        max-width: 38rem !important;
    }

    .atlas-login {
        display: block;
        min-height: 0;
    }

    .atlas-login__brand {
        min-height: auto;
        padding: 2rem 2.25rem;
    }

    .atlas-login__logo {
        width: 10.5rem;
        height: 4rem;
        margin-bottom: 1.5rem;
    }

    .atlas-login__intro h1 {
        margin-bottom: 0.6rem;
        font-size: 1.75rem;
    }

    .atlas-login__intro p {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .atlas-login__features {
        display: none;
    }

    .atlas-login__institutions {
        margin-top: 1.5rem;
    }

    .atlas-login__access {
        padding: 2.5rem 2.25rem;
    }
}

@media (max-width: 575.98px) {
    body.welcome-anonymous .page-anonymous > .flex-fill {
        justify-content: flex-start !important;
        padding: 0 !important;
    }

    body.welcome-anonymous .main-content-card {
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .atlas-login__brand {
        padding: 1.5rem;
    }

    .atlas-login__logo {
        width: 9rem;
        height: 3.25rem;
        margin-bottom: 1rem;
    }

    .atlas-login__intro h1 {
        font-size: 1.5rem;
    }

    .atlas-login__intro p,
    .atlas-login__institutions-label {
        display: none;
    }

    .atlas-login__institutions {
        margin-top: 1rem;
        padding: 0.7rem 0.85rem;
    }

    .atlas-login__city-logo {
        width: 2rem;
        height: 2.25rem;
    }

    .atlas-login__department-logo {
        height: 2.25rem;
    }

    .atlas-login__management-logo {
        height: 2.25rem;
    }

    .atlas-login__access {
        padding: 2rem 1.5rem 2.5rem;
    }

    .atlas-login__access-header {
        margin-bottom: 1.5rem;
    }

    .atlas-login__access-header h2 {
        font-size: 1.65rem;
    }

    .atlas-login__options {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    body.welcome-anonymous .container-tight > .text-muted {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atlas-login__submit {
        transition: none;
    }
}
