:root {
    color-scheme: light;
    --smhars-ink: #20333d;
    --smhars-muted: #71818a;
    --smhars-primary: #216b78;
    --smhars-primary-dark: #185461;
    --smhars-teal: #dff3ef;
    --smhars-blue: #e8f1f8;
    --smhars-canvas: #f4f8fa;
    --smhars-surface: #ffffff;
    --smhars-border: #e4ecef;
    --smhars-shadow: 0 12px 36px rgba(34, 69, 82, 0.08);
    --smhars-radius: 18px;
}

html {
    min-width: 320px;
    background: var(--smhars-canvas);
}

body {
    color: var(--smhars-ink);
    font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--smhars-canvas);
    line-height: 1.55;
}

a {
    color: var(--smhars-primary);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    width: 16.666667%;
    min-width: 220px;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    background: #193b49 !important;
    box-shadow: 8px 0 28px rgba(22, 52, 65, 0.1);
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.2rem 0;
    padding: 0.72rem 0.85rem;
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 0.91rem;
    font-weight: 550;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff !important;
    background: rgba(136, 216, 205, 0.18);
}

.sidebar .nav-link:hover {
    transform: translateX(2px);
}

.sidebar h6 {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: 0;
}

.sidebar-heading {
    margin: 1.2rem 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

main {
    min-height: 100vh;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

main > .d-flex:first-child {
    min-height: 64px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--smhars-ink);
    letter-spacing: -0.025em;
}

.card {
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(222, 234, 237, 0.9);
    border-radius: var(--smhars-radius);
    background: var(--smhars-surface);
    box-shadow: var(--smhars-shadow);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--smhars-border);
    background: #fff;
    font-weight: 650;
}

.card-body {
    padding: 1.35rem;
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: var(--smhars-primary);
    background-color: var(--smhars-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--smhars-primary-dark);
    background-color: var(--smhars-primary-dark);
}

.form-control,
.form-select,
.input-group-text {
    min-height: 44px;
    border-color: #dce6e9;
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: #7ab8b7;
    box-shadow: 0 0 0 0.22rem rgba(33, 107, 120, 0.13);
}

.form-label {
    color: #344a55;
    font-size: 0.9rem;
    font-weight: 650;
}

.table-responsive {
    border-radius: 12px;
}

.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table th {
    padding: 0.9rem 0.8rem;
    border-top: 0;
    background: #f4f8f9;
    color: #596e78;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    padding: 0.85rem 0.8rem;
    border-color: #edf2f3;
}

.badge {
    padding: 0.45em 0.7em;
    border-radius: 999px;
    font-weight: 650;
}

.alert {
    border: 0;
    border-radius: 14px;
}

.login-page {
    min-height: 100vh;
    background: #f3f7f8;
}

.login-shell {
    display: grid;
    width: min(1240px, 100%);
    min-height: min(900px, 100vh);
    grid-template-columns: minmax(340px, 0.92fr) minmax(500px, 1.08fr);
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 24px 80px rgba(32, 63, 76, 0.12);
}

.login-story {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    padding: 2.4rem clamp(2rem, 5vw, 4.5rem) 2rem;
    color: #fff;
    background: #1b4c5a;
    isolation: isolate;
}

.login-story::before,
.login-story::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(218, 249, 242, 0.13);
    border-radius: 50%;
    content: "";
}

.login-story::before {
    top: 16%;
    left: -39%;
    width: 122%;
    aspect-ratio: 1;
}

.login-story::after {
    right: -44%;
    bottom: -34%;
    width: 120%;
    aspect-ratio: 1;
    background: rgba(58, 137, 142, 0.13);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f3fffc;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.brand-mark,
.login-mobile-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.25rem;
}

.wellness-art {
    position: relative;
    width: min(330px, 100%);
    height: 245px;
    flex: 0 0 245px;
    align-self: center;
    margin: auto 0 1.2rem;
    animation: art-enter 700ms ease both;
}

.art-orbit {
    position: absolute;
    top: 14px;
    left: 50%;
    border: 1px solid rgba(234, 255, 249, 0.17);
    border-radius: 50%;
    transform: translateX(-50%);
}

.orbit-one {
    width: 240px;
    height: 200px;
}

.orbit-two {
    top: 32px;
    width: 190px;
    height: 160px;
}

.art-sun {
    position: absolute;
    top: 64px;
    left: 50%;
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    color: #fff;
    background: #408b8b;
    box-shadow: 0 16px 40px rgba(11, 40, 52, 0.2);
    font-size: 2.2rem;
    transform: translateX(-50%) rotate(-7deg);
}

.art-ground {
    position: absolute;
    right: 3%;
    bottom: 4px;
    left: 3%;
    height: 75px;
    border-radius: 55% 55% 12px 12px;
}

.ground-back {
    bottom: 24px;
    left: 21%;
    background: #38777e;
    clip-path: ellipse(52% 43% at 50% 100%);
}

.ground-front {
    background: #286671;
    clip-path: ellipse(59% 48% at 50% 100%);
}

.art-spark {
    position: absolute;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    color: #c5f1e7;
    background: rgba(225, 251, 246, 0.1);
}

.spark-one {
    top: 43px;
    left: 17%;
}

.spark-two {
    top: 85px;
    right: 13%;
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
}

.login-story-copy {
    max-width: 400px;
    margin: 0 auto;
    animation: copy-enter 550ms ease both;
}

.eyebrow {
    color: #66999a;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-story .eyebrow {
    color: #b6e4da;
}

.login-story h1 {
    margin: 0.65rem 0 0.5rem;
    color: #fff;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
}

.story-tagline {
    margin: 1rem 0 0.4rem;
    color: #d7f0e9;
    font-size: 1.08rem;
    font-weight: 650;
}

.story-description {
    max-width: 370px;
    color: rgba(244, 255, 251, 0.74);
    font-size: 0.94rem;
}

.story-footer {
    margin: auto 0 0;
    padding-top: 2rem;
    color: rgba(240, 255, 250, 0.65);
    font-size: 0.8rem;
    text-align: center;
}

.login-content {
    display: flex;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.4rem);
}

.login-content-inner {
    width: min(440px, 100%);
    animation: copy-enter 500ms ease both;
}

.login-heading {
    margin-bottom: 1.8rem;
}

.login-heading h2 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.55rem, 3vw, 1.9rem);
    font-weight: 720;
}

.login-heading > p:last-child {
    margin-bottom: 0;
    color: var(--smhars-muted);
}

.login-mobile-mark {
    display: none;
    margin-bottom: 1.25rem;
    color: var(--smhars-primary);
    background: var(--smhars-teal);
}

.login-alert {
    color: #853b3b;
    background: #fff0ef;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap .form-control {
    height: 49px;
    padding-right: 1rem;
    padding-left: 2.8rem;
    border-color: #dce7e9;
    background: #fbfdfd;
}

.login-input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 1rem;
    color: #789099;
    transform: translateY(-50%);
}

.password-wrap .form-control {
    padding-right: 3.2rem;
}

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 0.55rem;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #71858d;
    background: transparent;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--smhars-primary);
    background: var(--smhars-blue);
}

.login-submit {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
}

.login-submit:disabled {
    cursor: wait;
    opacity: 0.8;
    transform: none;
}

.password-help {
    margin: 0.9rem 0 1.5rem;
    color: var(--smhars-muted);
    font-size: 0.8rem;
    text-align: center;
}

.demo-access {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #dcebe8;
    border-radius: 15px;
    background: #f7fbfa;
}

.demo-heading,
.demo-account-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.demo-label {
    color: #26726b;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.demo-heading h3 {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.demo-lock {
    color: #64817f;
    font-size: 0.7rem;
    white-space: nowrap;
}

.demo-intro {
    margin: 0.65rem 0 0.8rem;
    color: #61767c;
    font-size: 0.76rem;
    line-height: 1.45;
}

.demo-accounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.demo-account {
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid #e6eeee;
    border-radius: 11px;
    background: #fff;
}

.demo-account-top {
    justify-content: flex-start;
    min-width: 0;
    margin-bottom: 0.45rem;
}

.demo-account-top strong {
    overflow: hidden;
    color: #344b53;
    font-size: 0.71rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-role-icon {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border-radius: 8px;
    color: var(--smhars-primary);
    background: var(--smhars-blue);
}

.btn-use-demo {
    margin-left: auto;
    padding: 0.25rem 0.4rem;
    border: 0;
    border-radius: 7px;
    color: var(--smhars-primary-dark);
    background: var(--smhars-teal);
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.btn-use-demo:hover {
    background: #c8e9e2;
}

.demo-credential {
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr) 25px;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.22rem 0;
    color: #74858b;
    font-size: 0.61rem;
}

.demo-credential code {
    overflow: hidden;
    color: #4a6068;
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-demo {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #668087;
    background: transparent;
}

.copy-demo:hover {
    color: var(--smhars-primary);
    background: var(--smhars-blue);
}

.demo-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.1rem;
    margin: 0.8rem 0 0.35rem;
    padding-left: 1rem;
    color: #62767c;
    font-size: 0.67rem;
}

.demo-warning {
    margin: 0.55rem 0 0;
    color: #7a6860;
    font-size: 0.68rem;
}

.login-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-top: 1.4rem;
    color: #849299;
    font-size: 0.68rem;
}

.role-chip,
.subtle-label {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--smhars-border);
    border-radius: 999px;
    color: #60737b;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 650;
}

.stat-card {
    height: 100%;
    min-height: 145px;
    margin-bottom: 0;
}

.stat-card .card-body {
    display: flex;
    min-height: 145px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
}

.stat-icon {
    display: grid;
    width: 36px;
    height: 36px;
    margin-bottom: 0.65rem;
    place-items: center;
    border-radius: 11px;
    font-size: 1rem;
}

.stat-label {
    margin: 0;
    color: #71818a;
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.25;
}

.stat-value {
    margin: auto 0 0;
    color: #243c46;
    font-size: 1.65rem;
    font-weight: 750;
    letter-spacing: -0.05em;
    line-height: 1.2;
}

.stat-blue .stat-icon { color: #347497; background: #e7f2f8; }
.stat-teal .stat-icon { color: #287c72; background: #e1f3ee; }
.stat-violet .stat-icon { color: #7164a0; background: #f0edfa; }
.stat-amber .stat-icon { color: #a3732f; background: #fbf1de; }
.stat-cyan .stat-icon { color: #367f91; background: #e3f2f6; }
.stat-green .stat-icon { color: #428367; background: #e8f4eb; }

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-title-row h2 {
    font-weight: 700;
}

.chart-wrap {
    position: relative;
    height: 250px;
    margin-top: 1rem;
}

.chart-wrap-short {
    height: 220px;
}

.empty-state {
    display: grid;
    min-height: 140px;
    align-content: center;
    justify-items: center;
    color: #829198;
    text-align: center;
}

.empty-state i {
    margin-bottom: 0.5rem;
    color: #8db9b4;
    font-size: 1.6rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.88rem;
}

.activity-list {
    display: grid;
    gap: 0.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.activity-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid #edf2f3;
}

.activity-list li:last-child {
    border-bottom: 0;
}

.activity-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #62a99c;
    box-shadow: 0 0 0 4px #e8f4f1;
}

.activity-list li > span:nth-child(2) {
    display: grid;
    min-width: 0;
}

.activity-list strong {
    overflow: hidden;
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-list small,
.activity-list time {
    color: var(--smhars-muted);
    font-size: 0.72rem;
}

.activity-list time {
    margin-left: auto;
    white-space: nowrap;
}

.security-metric {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem;
    border-radius: 13px;
    background: #f6f9fa;
}

.security-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    color: #a57140;
    background: #fbf0e2;
    font-size: 1.1rem;
}

.security-metric > span:last-child {
    display: grid;
}

.security-metric strong {
    font-size: 1.1rem;
}

.security-metric small {
    color: var(--smhars-muted);
    font-size: 0.73rem;
}

.student-welcome {
    position: relative;
    overflow: hidden;
    border-color: #dcece9;
    background: linear-gradient(110deg, #f8fcfb 0%, #edf7f6 100%);
}

.student-welcome .card-body {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.3rem, 3vw, 2.2rem);
}

.welcome-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.welcome-copy > p:not(.eyebrow) {
    max-width: 560px;
    color: #647a80;
}

.welcome-mark {
    position: relative;
    display: grid;
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    place-items: center;
    border: 1px solid rgba(67, 143, 137, 0.18);
    border-radius: 40px;
    color: #397f7d;
    background: rgba(215, 239, 233, 0.75);
    font-size: 3rem;
    transform: rotate(7deg);
}

.welcome-mark span {
    position: absolute;
    top: -10px;
    right: -17px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: #558f83;
    background: #fff;
    box-shadow: var(--smhars-shadow);
    font-size: 1rem;
}

.profile-details {
    display: grid;
    grid-template-columns: minmax(110px, 0.75fr) 1.25fr;
    gap: 0.2rem 1rem;
    margin: 0;
}

.profile-details dt,
.profile-details dd {
    padding: 0.65rem 0;
    border-bottom: 1px solid #edf2f3;
}

.profile-details dt {
    color: #74858b;
    font-size: 0.82rem;
    font-weight: 600;
}

.profile-details dd {
    margin: 0;
    color: #344a55;
    font-size: 0.86rem;
    font-weight: 600;
}

@keyframes copy-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes art-enter {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 991.98px) {
    .login-shell {
        grid-template-columns: minmax(290px, 0.8fr) minmax(460px, 1.2fr);
    }

    .login-story {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .login-content {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        position: relative;
        inset: auto;
        width: 100%;
        min-width: 0;
        padding: 0.9rem;
    }

    .sidebar .position-sticky {
        position: static !important;
    }

    .sidebar .nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
        gap: 0.15rem 0.4rem;
    }

    .sidebar .nav-link {
        padding: 0.55rem 0.65rem;
        font-size: 0.8rem;
    }

    main {
        width: 100%;
        margin-left: 0 !important;
        padding: 1.1rem 1rem 2rem;
    }

    .login-shell {
        display: block;
        min-height: 100vh;
        box-shadow: none;
    }

    .login-story {
        min-height: 220px;
        padding: 1.3rem 1.35rem 1.5rem;
    }

    .login-story::before {
        top: -105%;
        left: 40%;
        width: 110%;
    }

    .login-brand {
        font-size: 0.9rem;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .wellness-art {
        position: absolute;
        top: 5px;
        right: 1rem;
        width: 150px;
        height: 170px;
        flex-basis: auto;
        margin: 0;
        opacity: 0.72;
        transform: scale(0.68);
        transform-origin: top right;
    }

    .login-story-copy {
        margin: 1.4rem 0 0;
    }

    .login-story-copy .eyebrow,
    .story-description,
    .story-footer {
        display: none;
    }

    .login-story h1 {
        margin: 0;
        font-size: 1.7rem;
    }

    .story-tagline {
        margin: 0.4rem 0 0;
        font-size: 0.85rem;
    }

    .login-content {
        padding: 1.8rem 1.2rem 2rem;
    }

    .login-mobile-mark {
        display: inline-grid;
    }
}

@media (max-width: 430px) {
    .demo-accounts {
        grid-template-columns: 1fr;
    }

    .demo-steps {
        display: block;
    }

    .demo-account-top strong {
        font-size: 0.75rem;
    }
}

.welcome-page {
    background: #fff;
}

.welcome-main {
    min-height: auto;
    padding: 0;
}

.welcome-container {
    width: min(1160px, calc(100% - 3rem));
    margin: 0 auto;
}

.welcome-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(228, 236, 239, 0.85);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.welcome-nav {
    display: flex;
    width: min(1280px, calc(100% - 3rem));
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0 auto;
}

.welcome-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--smhars-ink);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
    white-space: nowrap;
}

.welcome-brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #317f89, #215d6c);
    font-size: 1.15rem;
}

.welcome-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.7rem, 1.8vw, 1.5rem);
}

.welcome-nav-links a,
.welcome-footer a {
    color: #50636d;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.welcome-nav-links a:hover,
.welcome-footer a:hover {
    color: var(--smhars-primary);
}

.welcome-hero {
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7.5rem) 0;
    background: radial-gradient(ellipse at 82% 48%, #e0f2ee 0, transparent 38%), linear-gradient(115deg, #f8fbfc, #f1f8f7);
}

.welcome-hero-grid {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    align-items: center;
    gap: 2rem;
}

.welcome-eyebrow {
    margin: 0 0 0.85rem;
    color: var(--smhars-primary);
    font-size: 0.77rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.welcome-eyebrow i {
    margin-right: 0.35rem;
}

.welcome-hero h1 {
    max-width: 630px;
    margin: 0;
    font-size: clamp(2.7rem, 5.3vw, 4.65rem);
    font-weight: 780;
    line-height: 1.05;
}

.welcome-lead {
    max-width: 590px;
    margin: 1.35rem 0 1.6rem;
    color: #60737c;
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.welcome-trust {
    margin: 1.5rem 0 0;
    color: #60737c;
    font-size: 0.86rem;
}

.welcome-trust i {
    margin-right: 0.35rem;
    color: var(--smhars-primary);
}

.welcome-illustration {
    position: relative;
    display: grid;
    min-height: 390px;
    place-items: center;
}

.welcome-person {
    position: relative;
    z-index: 2;
    width: min(100%, 390px);
    filter: drop-shadow(0 18px 22px rgba(48, 96, 99, 0.12));
}

.welcome-art-orbit {
    position: absolute;
    width: min(80vw, 390px);
    height: min(80vw, 390px);
    border: 1px solid rgba(63, 135, 137, 0.18);
    border-radius: 50%;
}

.welcome-art-orbit::before,
.welcome-art-orbit::after {
    position: absolute;
    border: 1px solid rgba(63, 135, 137, 0.15);
    border-radius: 50%;
    content: "";
    inset: 12%;
}

.welcome-art-orbit::after {
    inset: 24%;
}

.welcome-art-sun {
    position: absolute;
    top: 6%;
    right: 12%;
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 50%;
    color: #a37537;
    background: #f5e6c8;
    font-size: 1.65rem;
}

.welcome-art-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.95rem;
    border: 1px solid rgba(228, 236, 239, 0.9);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--smhars-shadow);
    color: #41565f;
    font-size: 0.82rem;
    font-weight: 650;
}

.welcome-art-card i {
    color: var(--smhars-primary);
    font-size: 1.15rem;
}

.art-card-one {
    top: 25%;
    left: 0;
}

.art-card-two {
    right: 0;
    bottom: 17%;
}

.welcome-art-spark {
    position: absolute;
    z-index: 3;
    color: #ad8b53;
    font-size: 1.1rem;
}

.spark-a {
    top: 15%;
    left: 17%;
}

.spark-b {
    right: 16%;
    bottom: 36%;
}

.welcome-section {
    padding: clamp(3.8rem, 7vw, 6rem) 0;
    scroll-margin-top: 85px;
}

.welcome-section-tint {
    background: #f5f9fa;
}

.welcome-section-heading {
    max-width: 720px;
    margin: 0 auto 2.4rem;
    text-align: center;
}

.welcome-section-heading h2,
.welcome-cta h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 750;
}

.welcome-section-heading > p:last-child {
    margin: 0 auto;
    color: var(--smhars-muted);
}

.welcome-benefits,
.welcome-service-grid,
.welcome-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.welcome-benefits article,
.welcome-service-grid article,
.welcome-resource-grid article {
    padding: 1.5rem;
    border: 1px solid var(--smhars-border);
    border-radius: var(--smhars-radius);
    background: #fff;
    box-shadow: 0 8px 26px rgba(34, 69, 82, 0.045);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.welcome-benefits article:hover,
.welcome-service-grid article:hover,
.welcome-resource-grid article:hover {
    transform: translateY(-3px);
    box-shadow: var(--smhars-shadow);
}

.welcome-benefits article > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    color: var(--smhars-primary);
    background: var(--smhars-teal);
    font-size: 1.35rem;
}

.welcome-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.welcome-service-grid article > i,
.welcome-resource-grid article > i {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--smhars-primary);
    font-size: 1.45rem;
}

.welcome-benefits h3,
.welcome-service-grid h3,
.welcome-resource-grid h3,
.welcome-steps h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.welcome-benefits p,
.welcome-service-grid p,
.welcome-resource-grid p,
.welcome-steps p {
    margin: 0;
    color: var(--smhars-muted);
    font-size: 0.91rem;
}

.welcome-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.welcome-steps li {
    padding: 1.2rem 1rem;
    border-top: 2px solid #cfe7e2;
}

.welcome-steps li > span {
    display: block;
    margin-bottom: 1rem;
    color: var(--smhars-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.welcome-resource-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.welcome-cta {
    padding: clamp(3rem, 6vw, 5rem) 0;
    color: #fff;
    background: linear-gradient(115deg, #205d69, #327f82);
}

.welcome-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.welcome-cta .welcome-eyebrow {
    color: #c3e8df;
}

.welcome-cta h2 {
    color: #fff;
}

.welcome-cta-inner > div:first-child {
    max-width: 670px;
}

.welcome-cta-inner > div:first-child > p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.welcome-footer {
    padding: 3rem 0 1.2rem;
    background: #f8fafb;
}

.welcome-footer-main {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1fr 1.2fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.welcome-footer-main > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.welcome-footer-main h2 {
    margin: 0 0 0.3rem;
    font-size: 0.9rem;
    font-weight: 750;
}

.welcome-footer-main p {
    margin: 0;
    color: var(--smhars-muted);
    font-size: 0.82rem;
}

.welcome-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--smhars-border);
    color: var(--smhars-muted);
    font-size: 0.78rem;
}

@media (max-width: 900px) {
    .welcome-nav {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.8rem 0;
    }

    .welcome-nav-links {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.55rem 1.1rem;
    }

    .welcome-hero-grid {
        grid-template-columns: 1fr 0.8fr;
    }

    .welcome-benefits,
    .welcome-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .welcome-container,
    .welcome-nav {
        width: min(100% - 2rem, 540px);
    }

    .welcome-nav {
        justify-content: space-between;
    }

    .welcome-nav-links {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
    }

    .welcome-nav-links a {
        white-space: nowrap;
    }

    .welcome-login {
        padding: 0.45rem 0.7rem;
    }

    .welcome-hero {
        padding-top: 3.3rem;
    }

    .welcome-hero-grid {
        grid-template-columns: 1fr;
    }

    .welcome-illustration {
        min-height: 300px;
        margin-top: 0.5rem;
    }

    .welcome-person {
        width: min(85%, 330px);
    }

    .welcome-art-card {
        gap: 0.4rem;
        padding: 0.6rem 0.7rem;
        font-size: 0.72rem;
    }

    .welcome-benefits,
    .welcome-service-grid,
    .welcome-resource-grid,
    .welcome-steps {
        grid-template-columns: 1fr;
    }

    .welcome-steps {
        gap: 0.25rem;
    }

    .welcome-steps li {
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: 0.7rem;
        padding: 0.8rem 0.4rem;
    }

    .welcome-steps li > span {
        grid-row: span 2;
        margin: 0;
    }

    .welcome-cta-inner,
    .welcome-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .welcome-footer-main {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Refined public-facing compositions */
.login-page {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: #17283a;
    background: #f3f7fb;
}

.login-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f7f9fc;
    box-shadow: none;
}

.login-story {
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(2rem, 4vw, 4rem) clamp(2.5rem, 6vw, 6.5rem);
    background:
        radial-gradient(ellipse at 68% 32%, rgba(35, 198, 183, 0.18), transparent 34%),
        radial-gradient(ellipse at 8% 100%, rgba(38, 91, 147, 0.35), transparent 47%),
        linear-gradient(145deg, #081426 0%, #10243d 62%, #0c303e 100%);
}

.login-story::before {
    top: 10%;
    left: -38%;
    width: 115%;
    border-color: rgba(179, 238, 230, 0.12);
}

.login-story::after {
    right: -48%;
    bottom: -34%;
    width: 125%;
    background: rgba(36, 198, 183, 0.08);
    box-shadow: 0 0 100px rgba(36, 198, 183, 0.12);
}

.login-brand {
    position: relative;
    z-index: 1;
    color: #f4fbff;
    font-size: 0.95rem;
    letter-spacing: 0.16em;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(163, 235, 224, 0.3);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(38, 198, 183, 0.3), rgba(90, 160, 205, 0.13));
    box-shadow: 0 10px 32px rgba(3, 10, 23, 0.25), inset 0 1px rgba(255, 255, 255, 0.16);
}

.wellness-art {
    width: min(360px, 72%);
    height: 220px;
    flex-basis: 220px;
    margin: auto auto 0.35rem;
    animation: art-enter 850ms cubic-bezier(0.2, 0.7, 0.2, 1) both, art-float 7s ease-in-out 900ms infinite;
}

.art-orbit {
    border-color: rgba(155, 232, 224, 0.2);
    box-shadow: 0 0 45px rgba(41, 207, 188, 0.08);
}

.orbit-one {
    width: 265px;
    height: 208px;
}

.orbit-two {
    width: 208px;
    height: 166px;
}

.art-sun {
    width: 96px;
    height: 96px;
    border-color: rgba(224, 255, 251, 0.35);
    color: #e8fffb;
    background: linear-gradient(145deg, #25a99f, #23687b);
    box-shadow: 0 18px 56px rgba(13, 196, 176, 0.2), inset 0 1px rgba(255, 255, 255, 0.3);
}

.ground-back {
    background: #1b5363;
}

.ground-front {
    background: linear-gradient(110deg, #17475a, #207277);
}

.art-spark {
    border-color: rgba(213, 250, 243, 0.2);
    color: #b6f4e8;
    background: rgba(188, 246, 235, 0.1);
    box-shadow: 0 8px 26px rgba(3, 16, 29, 0.2);
    animation: spark-drift 4.5s ease-in-out infinite;
}

.spark-two {
    animation-delay: -2.2s;
}

.login-story-copy {
    position: relative;
    z-index: 1;
    width: min(590px, 100%);
    max-width: 590px;
    margin: 0;
    animation: copy-enter 650ms 120ms ease both;
}

.login-story .eyebrow {
    color: #8de6da;
    letter-spacing: 0.17em;
}

.login-story h1 {
    margin-top: 0.45rem;
    font-size: clamp(2.7rem, 4.6vw, 4.25rem);
    font-weight: 720;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.story-tagline {
    margin-top: 0.85rem;
    color: #d7f6f0;
    font-size: 1.08rem;
    font-weight: 630;
}

.story-description {
    max-width: 480px;
    margin-bottom: 0.7rem;
    color: rgba(233, 246, 251, 0.72);
    font-size: 0.96rem;
    line-height: 1.65;
}

.login-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: 1rem 0 0;
    padding: 0;
    color: rgba(237, 250, 250, 0.84);
    font-size: 0.77rem;
    list-style: none;
}

.login-feature-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.login-feature-list i {
    color: #65d8ca;
}

.story-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 1rem;
    color: rgba(235, 250, 248, 0.58);
    font-size: 0.76rem;
    text-align: left;
}

.login-content {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
    padding: clamp(2rem, 4vw, 4rem) clamp(2.25rem, 5.2vw, 5.4rem);
    background:
        radial-gradient(ellipse at 100% 0%, rgba(110, 211, 207, 0.12), transparent 33%),
        linear-gradient(150deg, #fbfcfe, #f1f5f9);
}

.login-content-inner {
    width: min(450px, 100%);
    animation: panel-enter 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.login-heading {
    margin-bottom: 1.35rem;
}

.login-heading .eyebrow {
    margin-bottom: 0.45rem;
    color: #167c79;
}

.login-heading h2 {
    margin-bottom: 0.4rem;
    color: #152b3c;
    font-size: clamp(1.7rem, 2.4vw, 2.15rem);
    font-weight: 720;
    letter-spacing: -0.045em;
}

.login-heading > p:last-child {
    color: #697d8b;
    font-size: 0.94rem;
}

.login-form .mb-3 {
    margin-bottom: 0.85rem !important;
}

.login-form .form-label {
    margin-bottom: 0.38rem;
    color: #304858;
    font-size: 0.82rem;
    font-weight: 650;
}

.login-input-wrap .form-control {
    height: 51px;
    border: 1px solid #d6e1e9;
    border-radius: 13px;
    color: #132d40;
    background: rgba(255, 255, 255, 0.86);
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.login-input-wrap:focus-within .form-control {
    border-color: #31aaa2;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(49, 170, 162, 0.12), 0 8px 24px rgba(23, 84, 105, 0.06);
}

.login-input-icon {
    color: #718996;
    transition: color 180ms ease;
}

.login-input-wrap:focus-within .login-input-icon {
    color: #188983;
}

.password-toggle {
    width: 38px;
    height: 38px;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.92);
}

.login-form .form-text {
    margin-top: 0.35rem;
    color: #738592;
    font-size: 0.76rem;
}

.login-submit {
    min-height: 52px;
    margin-top: 0.25rem;
    border: 1px solid #137f80;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(105deg, #117e80, #1a9290 55%, #1b777f);
    box-shadow: 0 10px 22px rgba(14, 117, 120, 0.18);
    font-weight: 680;
    letter-spacing: 0.01em;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    border-color: #0c6d72;
    color: #fff;
    background: linear-gradient(105deg, #0d7377, #178582 55%, #176b75);
    box-shadow: 0 14px 28px rgba(14, 117, 120, 0.25);
    transform: translateY(-2px);
}

.login-submit:active {
    transform: translateY(0);
}

.password-help {
    margin: 0.72rem 0 1rem;
    color: #748391;
    font-size: 0.76rem;
}

.demo-access {
    margin-top: 0.6rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce7ec;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 24px rgba(27, 62, 82, 0.035);
}

.demo-summary {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    list-style: none;
}

.demo-summary::-webkit-details-marker {
    display: none;
}

.demo-summary .demo-heading {
    justify-content: flex-start;
}

.demo-summary h3 {
    margin: 0.1rem 0 0;
    color: #233b4a;
    font-size: 0.94rem;
    font-weight: 700;
}

.demo-label {
    color: #137b75;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.demo-lock {
    padding: 0.35rem 0.5rem;
    border: 1px solid #e0eceb;
    border-radius: 999px;
    color: #567773;
    background: #f3faf8;
    font-size: 0.65rem;
}

.demo-chevron {
    flex: 0 0 auto;
    color: #4a7476;
    transition: transform 220ms ease;
}

.demo-access[open] .demo-chevron {
    transform: rotate(180deg);
}

.demo-panel {
    padding: 0 1rem 0.9rem;
    animation: panel-enter 220ms ease both;
}

.demo-intro {
    margin: 0 0 0.75rem;
    color: #637985;
    font-size: 0.74rem;
}

.demo-accounts {
    gap: 0.55rem;
}

.demo-account {
    border-color: #e2ebef;
    border-radius: 12px;
    background: #fff;
    transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.demo-account:hover {
    border-color: #b8d9d8;
    box-shadow: 0 8px 18px rgba(29, 85, 96, 0.08);
    transform: translateY(-1px);
}

.demo-account-top strong {
    color: #304957;
}

.demo-credential code {
    color: #344f5b;
}

.demo-warning {
    margin: 0.75rem 0 0;
    color: #70818b;
    font-size: 0.68rem;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    color: #82909b;
    font-size: 0.68rem;
}

.login-footer span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.welcome-page {
    --welcome-ink: #eaf3f8;
    --welcome-muted: #a9bac8;
    --welcome-accent: #65e2d2;
    background: #f7f9fc;
}

html:has(.welcome-page) {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

.welcome-header {
    border-bottom: 1px solid rgba(174, 218, 228, 0.12);
    background: rgba(8, 20, 38, 0.95);
    backdrop-filter: blur(18px);
    transition: background-color 220ms ease, box-shadow 220ms ease;
}

.welcome-header.is-scrolled {
    background: rgba(8, 20, 38, 0.88);
    box-shadow: 0 10px 30px rgba(3, 13, 28, 0.18);
}

.welcome-nav {
    position: relative;
    min-height: 76px;
}

.welcome-brand {
    color: #f2f8fb;
    letter-spacing: 0.08em;
}

.welcome-brand-mark {
    border: 1px solid rgba(125, 232, 218, 0.3);
    color: #dcfffa;
    background: linear-gradient(145deg, #157f85, #174f69);
    box-shadow: 0 8px 22px rgba(19, 151, 145, 0.18);
}

.welcome-nav-links {
    gap: clamp(0.7rem, 1.6vw, 1.45rem);
}

.welcome-nav-links a {
    position: relative;
    padding: 0.45rem 0;
    color: rgba(231, 242, 248, 0.76);
    font-size: 0.83rem;
    transition: color 160ms ease;
}

.welcome-nav-links a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--welcome-accent);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.welcome-nav-links a:hover,
.welcome-nav-links a[aria-current="location"] {
    color: #fff;
}

.welcome-nav-links a:hover::after,
.welcome-nav-links a[aria-current="location"]::after {
    transform: scaleX(1);
}

.welcome-login {
    padding: 0.58rem 1.05rem;
    border-color: rgba(114, 223, 212, 0.5);
    border-radius: 11px;
    color: #dffffa;
    background: rgba(60, 184, 176, 0.12);
}

.welcome-login:hover,
.welcome-login:focus-visible {
    border-color: #6de0d1;
    color: #081426;
    background: #74e6d6;
}

.welcome-menu-toggle {
    display: none;
}

.welcome-hero {
    position: relative;
    display: grid;
    min-height: calc(100vh - 76px);
    min-height: calc(100svh - 76px);
    align-items: center;
    padding: clamp(3.2rem, 6vw, 5.5rem) 0;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 78% 45%, rgba(29, 158, 158, 0.18), transparent 30%),
        radial-gradient(ellipse at 14% 82%, rgba(36, 91, 145, 0.2), transparent 38%),
        linear-gradient(118deg, #081426 0%, #0b1c34 58%, #0d2b3c 100%);
}

.welcome-hero::before,
.welcome-hero::after {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    content: "";
}

.welcome-hero::before {
    inset: -35% -12% auto 32%;
    height: 82%;
    border-radius: 50%;
    background: linear-gradient(115deg, rgba(39, 203, 181, 0.11), rgba(60, 112, 195, 0.13), transparent 70%);
    filter: blur(70px);
    animation: aurora-drift 16s ease-in-out infinite alternate;
}

.welcome-hero::after {
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(rgba(185, 231, 240, 0.42) 0.65px, transparent 0.65px);
    background-size: 30px 30px;
    mask-image: linear-gradient(100deg, transparent 0%, #000 65%, transparent 100%);
}

.welcome-container {
    width: min(1240px, calc(100% - 3rem));
}

.welcome-hero-grid {
    position: relative;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(1.5rem, 4vw, 4.25rem);
}

.welcome-hero-copy {
    position: relative;
    z-index: 2;
    animation: copy-enter 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.welcome-eyebrow {
    color: #80e5d7;
    font-size: 0.7rem;
    letter-spacing: 0.17em;
}

.welcome-hero h1 {
    max-width: 650px;
    color: #f3f8fc;
    font-size: clamp(3.1rem, 5.4vw, 5rem);
    font-weight: 740;
    letter-spacing: -0.065em;
    line-height: 0.99;
}

.welcome-hero h1 span {
    display: block;
    color: #70e3d3;
}

.welcome-lead {
    max-width: 570px;
    margin: 1.35rem 0 1.65rem;
    color: rgba(222, 235, 243, 0.76);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.7;
}

.welcome-actions {
    gap: 0.8rem;
}

.welcome-actions .btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.93rem;
    font-weight: 650;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.welcome-actions .btn-primary {
    border-color: #59d5c7;
    color: #071b2b;
    background: linear-gradient(105deg, #71e6d6, #52c9c4);
    box-shadow: 0 12px 30px rgba(36, 198, 183, 0.19);
}

.welcome-actions .btn-primary:hover {
    border-color: #8cf2e5;
    color: #061827;
    background: #8cf2e5;
    box-shadow: 0 16px 34px rgba(36, 198, 183, 0.26);
    transform: translateY(-2px);
}

.welcome-actions .btn-light {
    border: 1px solid rgba(206, 232, 241, 0.18);
    color: #e3eff5;
    background: rgba(214, 235, 244, 0.08);
}

.welcome-actions .btn-light:hover {
    color: #fff;
    background: rgba(214, 235, 244, 0.15);
}

.welcome-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.4rem;
    color: rgba(210, 228, 237, 0.7);
    font-size: 0.77rem;
}

.welcome-trust i {
    color: #75ddcf;
}

.welcome-illustration {
    min-width: 0;
    min-height: clamp(360px, 43vw, 500px);
    animation: art-enter 900ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.welcome-art-orbit {
    width: min(92%, 445px);
    height: auto;
    aspect-ratio: 1;
    border-color: rgba(119, 224, 217, 0.25);
    box-shadow: 0 0 100px rgba(36, 198, 183, 0.1), inset 0 0 70px rgba(41, 120, 159, 0.08);
    animation: orbit-breathe 7s ease-in-out infinite;
}

.welcome-person {
    width: min(92%, 430px);
    filter: drop-shadow(0 26px 36px rgba(0, 8, 21, 0.35));
    transition: transform 240ms ease-out;
    will-change: transform;
}

.welcome-art-sun {
    top: 5%;
    right: 12%;
    border: 1px solid rgba(163, 244, 229, 0.25);
    color: #c8fff2;
    background: linear-gradient(145deg, #238f91, #1c5571);
    box-shadow: 0 12px 35px rgba(34, 178, 166, 0.2);
    animation: spark-drift 6s ease-in-out infinite;
}

.welcome-art-card {
    padding: 0.8rem 1rem;
    border-color: rgba(206, 233, 240, 0.17);
    color: #eaf7f7;
    background: rgba(13, 35, 56, 0.78);
    box-shadow: 0 18px 45px rgba(0, 10, 23, 0.24);
    backdrop-filter: blur(14px);
}

.art-card-one {
    top: 25%;
    left: 1%;
    animation: card-float 5.5s ease-in-out infinite;
}

.art-card-two {
    right: 1%;
    bottom: 15%;
    animation: card-float 6.5s ease-in-out -2.4s infinite;
}

.welcome-art-card i {
    color: #74e2d3;
}

.welcome-art-spark {
    color: #85e7d8;
    animation: spark-drift 5s ease-in-out infinite;
}

.welcome-section {
    padding: clamp(3.8rem, 7vw, 6rem) 0;
}

.welcome-section-tint {
    background: #f0f5f8;
}

.welcome-section-heading h2,
.welcome-cta h2 {
    color: #122a3a;
    letter-spacing: -0.045em;
}

.welcome-section-heading > p:last-child {
    color: #6f818c;
}

.welcome-benefits article,
.welcome-service-grid article,
.welcome-resource-grid article {
    border-color: #e3ebf0;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(23, 55, 76, 0.055);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.welcome-benefits article:hover,
.welcome-service-grid article:hover,
.welcome-resource-grid article:hover {
    border-color: #bfdfdf;
    box-shadow: 0 18px 40px rgba(23, 74, 91, 0.1);
    transform: translateY(-5px);
}

.welcome-benefits article > span {
    color: #137a78;
    background: #e2f5f1;
}

.welcome-steps li {
    border-color: #b8dcd8;
}

.welcome-steps li > span {
    color: #147d78;
}

.welcome-cta {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 82% 10%, rgba(82, 219, 202, 0.22), transparent 35%),
        linear-gradient(112deg, #0b2037, #104552);
}

.welcome-cta h2 {
    color: #f4fbfc;
}

.welcome-footer {
    background: #081426;
}

.welcome-footer .welcome-brand,
.welcome-footer-main h2 {
    color: #ecf5f8;
}

.welcome-footer-main p,
.welcome-footer a,
.welcome-footer-bottom {
    color: #9fb1bf;
}

.welcome-footer a:hover {
    color: #74e2d3;
}

.welcome-footer-bottom {
    border-color: rgba(201, 225, 233, 0.14);
}

.welcome-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.welcome-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes aurora-drift {
    from { transform: translate3d(-3%, -2%, 0) rotate(-5deg) scale(0.95); }
    to { transform: translate3d(4%, 4%, 0) rotate(7deg) scale(1.08); }
}

@keyframes orbit-breathe {
    0%, 100% { transform: scale(0.98); opacity: 0.72; }
    50% { transform: scale(1.025); opacity: 1; }
}

@keyframes art-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes spark-drift {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

@keyframes panel-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
    .login-shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .login-story {
        padding-right: 2.4rem;
        padding-left: 2.4rem;
    }

    .login-content {
        padding-right: 2.2rem;
        padding-left: 2.2rem;
    }

    .welcome-nav {
        gap: 1rem;
    }

    .welcome-nav-links {
        gap: 0.8rem;
    }

    .welcome-nav-links a {
        font-size: 0.76rem;
    }
}

@media (max-width: 767.98px) {
    .login-shell {
        display: block;
        min-height: 100vh;
        min-height: 100svh;
        overflow: visible;
        background: #f2f6fa;
    }

    .login-story {
        position: relative;
        min-height: 224px;
        padding: 1.1rem 1.25rem 1.3rem;
        border-radius: 0 0 26px 26px;
    }

    .login-brand {
        font-size: 0.82rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .wellness-art {
        top: 22px;
        right: 0.7rem;
        width: 150px;
        height: 160px;
        margin: 0;
        opacity: 0.62;
        transform: scale(0.82);
        transform-origin: top right;
    }

    .login-story-copy {
        width: 67%;
        margin: 1.35rem 0 0;
    }

    .login-story-copy .eyebrow,
    .story-description,
    .story-footer,
    .login-feature-list {
        display: none;
    }

    .login-story h1 {
        margin: 0;
        font-size: clamp(1.75rem, 7vw, 2.15rem);
        line-height: 1.02;
    }

    .story-tagline {
        max-width: 230px;
        margin: 0.45rem 0 0;
        color: rgba(231, 248, 246, 0.82);
        font-size: 0.78rem;
    }

    .login-content {
        min-height: auto;
        padding: 1rem 1rem 1.5rem;
        background: transparent;
    }

    .login-content-inner {
        width: min(460px, 100%);
        padding: 1.3rem 1.2rem 1rem;
        border: 1px solid rgba(219, 229, 236, 0.9);
        border-radius: 22px;
        background: #fff;
        box-shadow: 0 16px 42px rgba(24, 53, 77, 0.09);
    }

    .login-mobile-mark {
        width: 40px;
        height: 40px;
        margin-bottom: 0.8rem;
        border: 1px solid #d8eeeb;
        border-radius: 13px;
        background: #e9f7f4;
    }

    .login-heading {
        margin-bottom: 1rem;
    }

    .login-heading h2 {
        font-size: 1.65rem;
    }

    .login-footer {
        flex-direction: column;
        gap: 0.2rem;
        margin-top: 0.8rem;
    }

    .welcome-nav {
        min-height: 70px;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.6rem;
    }

    .welcome-brand {
        gap: 0.5rem;
        font-size: 0.88rem;
    }

    .welcome-brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .welcome-menu-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        align-content: center;
        justify-items: center;
        gap: 5px;
        padding: 0;
        border: 1px solid rgba(129, 219, 214, 0.25);
        border-radius: 12px;
        background: rgba(222, 251, 247, 0.08);
    }

    .welcome-menu-toggle span {
        width: 17px;
        height: 2px;
        border-radius: 2px;
        background: #eaf9f7;
        transition: transform 180ms ease;
    }

    .welcome-header.menu-open .welcome-menu-toggle span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .welcome-header.menu-open .welcome-menu-toggle span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .welcome-nav-links {
        position: absolute;
        top: calc(100% - 1px);
        right: 0;
        left: 0;
        z-index: 30;
        display: none;
        align-items: stretch;
        gap: 0.1rem;
        padding: 0.65rem;
        border: 1px solid rgba(174, 218, 228, 0.14);
        border-radius: 0 0 16px 16px;
        background: #0b1d33;
        box-shadow: 0 18px 32px rgba(2, 12, 27, 0.28);
    }

    .welcome-header.menu-open .welcome-nav-links {
        display: flex;
        flex-direction: column;
        animation: panel-enter 180ms ease both;
    }

    .welcome-nav-links a {
        padding: 0.65rem 0.7rem;
        border-radius: 8px;
        font-size: 0.9rem;
    }

    .welcome-nav-links a:hover {
        background: rgba(228, 250, 247, 0.08);
    }

    .welcome-nav-links a::after {
        display: none;
    }

    .welcome-login {
        margin-left: auto;
        padding: 0.5rem 0.72rem;
        font-size: 0.82rem;
    }

    .welcome-hero {
        min-height: auto;
        padding: 3.4rem 0 2.1rem;
    }

    .welcome-container {
        width: min(100% - 2.25rem, 540px);
    }

    .welcome-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.8rem;
    }

    .welcome-hero h1 {
        max-width: 560px;
        font-size: clamp(2.7rem, 11vw, 3.55rem);
    }

    .welcome-lead {
        margin: 1rem 0 1.25rem;
        font-size: 0.98rem;
    }

    .welcome-actions {
        align-items: stretch;
    }

    .welcome-actions .btn {
        min-height: 48px;
        padding: 0.65rem 0.85rem;
        font-size: 0.82rem;
    }

    .welcome-trust {
        align-items: flex-start;
        font-size: 0.72rem;
    }

    .welcome-illustration {
        min-height: 300px;
        margin-top: 0.1rem;
    }

    .welcome-art-orbit {
        width: min(84vw, 330px);
    }

    .welcome-person {
        width: min(90%, 330px);
    }

    .welcome-art-card {
        gap: 0.45rem;
        padding: 0.62rem 0.7rem;
        font-size: 0.69rem;
    }

    .art-card-one {
        left: 0;
    }

    .art-card-two {
        right: 0;
    }

    .welcome-section {
        padding: 3.4rem 0;
    }
}

@media (max-width: 430px) {
    .demo-accounts {
        grid-template-columns: 1fr;
    }

    .demo-account-top strong {
        font-size: 0.75rem;
    }

    .login-content-inner {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .welcome-actions {
        flex-direction: column;
    }

    .welcome-actions .btn {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-height: 760px) {
    .login-story,
    .login-content {
        min-height: 760px;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .wellness-art {
        height: 175px;
        flex-basis: 175px;
    }

    .login-story h1 {
        font-size: clamp(2.45rem, 4vw, 3.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-hero::before,
    .welcome-art-orbit,
    .welcome-art-sun,
    .welcome-art-card,
    .wellness-art,
    .art-spark {
        animation: none !important;
    }

    .welcome-person {
        transform: none !important;
    }
}

.logout-page {
    box-sizing: border-box;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: clamp(1rem, 3vw, 2.5rem);
    color: #203743;
    background:
        radial-gradient(ellipse at 12% 10%, rgba(196, 226, 218, 0.42), transparent 34rem),
        radial-gradient(ellipse at 88% 90%, rgba(215, 228, 237, 0.48), transparent 32rem),
        #f3f7f8;
}

.logout-shell {
    display: grid;
    width: min(1160px, 100%);
    min-height: min(740px, calc(100svh - 3rem));
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    overflow: hidden;
    border: 1px solid rgba(217, 229, 232, 0.9);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(31, 62, 75, 0.14), 0 4px 14px rgba(31, 62, 75, 0.04);
    animation: logout-enter 520ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.logout-page > .logout-shell {
    padding: 0;
}

.logout-story {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.6rem);
    color: #fff;
    background: linear-gradient(150deg, #173f4c 0%, #174e59 56%, #23676b 100%);
    isolation: isolate;
}

.logout-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    font-size: 0.94rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-decoration: none;
}

.logout-brand:hover {
    color: #fff;
}

.logout-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    color: #e0f3ea;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.25rem;
}

.logout-orbit {
    position: absolute;
    z-index: -1;
    width: 430px;
    aspect-ratio: 1;
    border: 1px solid rgba(224, 245, 237, 0.12);
    border-radius: 50%;
    pointer-events: none;
    animation: logout-orbit 32s linear infinite;
}

.logout-orbit::before,
.logout-orbit::after {
    position: absolute;
    border: 1px solid rgba(224, 245, 237, 0.09);
    border-radius: 50%;
    content: "";
    inset: 12%;
}

.logout-orbit::after {
    inset: 25%;
}

.logout-orbit-one {
    top: 24%;
    left: -47%;
}

.logout-orbit-two {
    right: -66%;
    bottom: -34%;
    width: 540px;
    opacity: 0.7;
    animation-direction: reverse;
}

.logout-story-copy {
    position: relative;
    z-index: 1;
    max-width: 410px;
    margin: auto 0;
    padding: 3.5rem 0;
    animation: logout-rise 650ms 80ms both;
}

.logout-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    color: #c3e6dc;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    line-height: 1.5;
    text-transform: uppercase;
}

.logout-eyebrow > span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #94d6b7;
    box-shadow: 0 0 0 4px rgba(148, 214, 183, 0.14);
}

.logout-story h1 {
    margin: 1.2rem 0 1rem;
    color: #fff;
    font-size: clamp(2.6rem, 4.2vw, 3.85rem);
    font-weight: 720;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.logout-story h1 span {
    color: #a9d8c8;
}

.logout-story-copy > p {
    max-width: 365px;
    margin: 0;
    color: rgba(240, 249, 246, 0.76);
    font-size: 0.98rem;
    line-height: 1.75;
}

.logout-story-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    color: rgba(240, 249, 246, 0.76);
    font-size: 0.79rem;
}

.logout-story-foot i {
    color: #a9d8c8;
    font-size: 1rem;
}

.logout-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.6rem);
    background:
        radial-gradient(ellipse at 80% 6%, rgba(239, 247, 246, 0.9), transparent 48%),
        #fff;
}

.logout-card {
    width: min(100%, 440px);
    animation: logout-rise 650ms 140ms both;
}

.logout-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    margin-bottom: 1.65rem;
    border: 1px solid #e1ecea;
    border-radius: 18px;
    color: #367b76;
    background: #eff7f4;
    box-shadow: 0 8px 20px rgba(43, 102, 95, 0.07);
    font-size: 1.45rem;
}

.logout-eyebrow-light {
    color: #71878b;
}

.logout-card h2 {
    margin: 0.7rem 0 0.55rem;
    color: #1d3440;
    font-size: clamp(1.8rem, 3vw, 2.15rem);
    font-weight: 730;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.logout-description {
    margin: 0;
    color: #708187;
    font-size: 0.94rem;
    line-height: 1.65;
}

.logout-account {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.85rem;
    margin: 1.7rem 0 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e7eeee;
    border-radius: 16px;
    background: #f9fbfb;
}

.logout-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 14px;
    color: #326d69;
    background: #dfefea;
    font-size: 1.05rem;
    font-weight: 750;
}

.logout-account-copy {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.logout-account-copy strong {
    overflow: hidden;
    color: #2a414b;
    font-size: 0.87rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-account-copy > span {
    color: #77898e;
    font-size: 0.77rem;
    text-transform: capitalize;
}

.logout-account-shield {
    margin-left: auto;
    color: #6c9991;
    font-size: 1rem;
}

.logout-actions {
    display: grid;
    gap: 0.7rem;
}

.logout-confirm,
.logout-cancel {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: 14px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.logout-confirm {
    justify-content: space-between;
    padding: 0 1.1rem 0 1.25rem;
    border: 1px solid #236d69;
    color: #fff;
    background: linear-gradient(110deg, #246a67, #31847a);
    box-shadow: 0 9px 18px rgba(38, 112, 104, 0.2);
    cursor: pointer;
}

.logout-confirm i {
    font-size: 1.05rem;
    transition: transform 160ms ease;
}

.logout-confirm:hover {
    border-color: #1f605d;
    color: #fff;
    background: linear-gradient(110deg, #1f605d, #28766f);
    box-shadow: 0 12px 23px rgba(38, 112, 104, 0.25);
    transform: translateY(-1px);
}

.logout-confirm:hover i {
    transform: translateX(3px);
}

.logout-cancel {
    border: 1px solid #e2e9ea;
    color: #3d5962;
    background: #fff;
}

.logout-cancel:hover {
    border-color: #c9dcd8;
    color: #2b6f69;
    background: #f7fbfa;
}

.logout-confirm:focus-visible,
.logout-cancel:focus-visible,
.logout-brand:focus-visible {
    outline: 3px solid rgba(68, 148, 137, 0.42);
    outline-offset: 3px;
}

.logout-error {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: -0.45rem 0 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #f1d2cd;
    border-radius: 12px;
    color: #984b42;
    background: #fff7f5;
    font-size: 0.84rem;
    line-height: 1.5;
}

.logout-error i {
    margin-top: 0.1rem;
}

.logout-security-note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 1.25rem 0 0;
    color: #7b8b90;
    font-size: 0.76rem;
    line-height: 1.55;
}

.logout-security-note i {
    margin-top: 0.06rem;
    color: #72968f;
}

.logout-footer {
    display: flex;
    width: min(100%, 440px);
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
    color: #89979b;
    font-size: 0.69rem;
}

.logout-success {
    margin: 1.5rem 0 0;
    padding: 0.85rem 1rem;
    border: 1px solid #cce8d9;
    color: #28694c;
    background: #effaf3;
    font-size: 0.88rem;
}

@keyframes logout-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes logout-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes logout-orbit {
    to { transform: rotate(360deg); }
}

@media (max-width: 800px) {
    .logout-shell {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .logout-page > .logout-shell {
        min-height: 0;
    }

    .logout-story {
        min-height: 250px;
        padding: 1.6rem 1.8rem;
    }

    .logout-story-copy {
        padding: 2.3rem 0 1rem;
    }

    .logout-story h1 {
        margin: 0.8rem 0 0.6rem;
        font-size: clamp(2rem, 7vw, 2.6rem);
    }

    .logout-story-copy > p {
        max-width: 460px;
        font-size: 0.88rem;
    }

    .logout-story-foot {
        display: none;
    }

    .logout-orbit-one {
        top: -110%;
        left: 42%;
        width: 380px;
    }

    .logout-orbit-two {
        right: -52%;
        bottom: -112%;
        width: 420px;
    }

    .logout-content {
        padding: 2.2rem clamp(1.5rem, 7vw, 3rem) 1.5rem;
    }

    .logout-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1.2rem;
        border-radius: 15px;
    }

    .logout-footer {
        padding-top: 1.5rem;
    }
}

@media (max-width: 430px) {
    .logout-page {
        align-items: flex-start;
        padding: 0.75rem;
    }

    .logout-shell {
        border-radius: 23px;
    }

    .logout-story {
        min-height: 224px;
        padding: 1.2rem 1.25rem;
    }

    .logout-brand {
        gap: 0.55rem;
        font-size: 0.82rem;
    }

    .logout-brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 1.08rem;
    }

    .logout-story-copy {
        padding: 1.8rem 0 0.4rem;
    }

    .logout-story-copy .logout-eyebrow {
        font-size: 0.58rem;
        letter-spacing: 0.11em;
    }

    .logout-story h1 {
        margin: 0.65rem 0 0.5rem;
        font-size: 2.05rem;
    }

    .logout-story-copy > p {
        max-width: 330px;
        font-size: 0.8rem;
        line-height: 1.55;
    }

    .logout-content {
        padding: 1.65rem 1.25rem 1.1rem;
    }

    .logout-card h2 {
        font-size: 1.7rem;
    }

    .logout-description {
        font-size: 0.86rem;
    }

    .logout-account {
        margin: 1.25rem 0 1.1rem;
        padding: 0.75rem 0.8rem;
    }

    .logout-confirm,
    .logout-cancel {
        min-height: 50px;
    }

    .logout-security-note {
        margin-top: 0.9rem;
        font-size: 0.72rem;
    }

    .logout-footer {
        flex-wrap: wrap;
        padding-top: 1.2rem;
        font-size: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logout-shell,
    .logout-story-copy,
    .logout-card,
    .logout-orbit {
        animation: none;
    }

    .logout-confirm,
    .logout-confirm i,
    .logout-cancel {
        transition: none;
    }
}
