/* =========================================================
   INDEX PAGE — page-specific layout only.
   Shared colors, typography, focus states and utilities
   come from /vt/assets/css/vt-ui.css
========================================================= */

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

body {
    background:
        radial-gradient(
            circle at 10% 5%,
            rgba(45, 95, 210, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 88%,
            rgba(14, 137, 144, 0.10),
            transparent 25%
        ),
        var(--vt-bg);
}


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

    display: grid;
    place-items: center;

    padding: 28px;
}


.portal-card {
    width: min(1160px, 100%);
    min-height: 680px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(390px, 0.85fr);

    overflow: hidden;

    border:
        1px solid
        rgba(212, 224, 237, 0.95);

    border-radius: 28px;

    background: var(--vt-panel);

    box-shadow:
        0 28px 80px
        rgba(20, 42, 82, 0.14);
}


/* =========================================================
   BRAND PANEL
========================================================= */

.brand-panel {
    position: relative;

    overflow: hidden;

    padding:
        clamp(30px, 5vw, 60px);

    display: flex;
    flex-direction: column;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #11294f 0%,
            #17396e 48%,
            #17697b 100%
        );
}


.brand-panel::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    top: -270px;
    right: -190px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    box-shadow:
        0 0 0 60px rgba(255,255,255,.025),
        0 0 0 120px rgba(255,255,255,.018);
}


.brand-panel::after {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    bottom: -220px;
    left: -170px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(71, 214, 210, 0.20),
            transparent 68%
        );
}


.brand-content {
    position: relative;
    z-index: 2;

    height: 100%;

    display: flex;
    flex-direction: column;
}


.index-brand {
    display: inline-flex;
    align-items: center;

    gap: 12px;
}


.index-brand .vt-brand-mark {
    width: 48px;
    height: 48px;

    flex-basis: 48px;
}


.index-brand .vt-brand-mark svg {
    width: 30px;
    height: 30px;
}


.index-brand-copy {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.index-brand-copy strong {
    font-size: 15px;
    letter-spacing: .02em;
}


.index-brand-copy span {
    color:
        rgba(255,255,255,.63);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .11em;

    text-transform: uppercase;
}


.hero-copy {
    max-width: 620px;

    margin-top:
        clamp(58px, 10vh, 105px);
}


.hero-kicker {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 15px;

    color: #9ce5df;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .10em;

    text-transform: uppercase;
}


.hero-kicker::before {
    content: "";

    width: 22px;
    height: 2px;

    border-radius: 999px;

    background: #68d5ce;
}


.hero-copy h1 {
    max-width: 600px;

    margin: 0;

    font-size:
        clamp(
            38px,
            5vw,
            63px
        );

    line-height: .99;

    letter-spacing: -.045em;
}


.hero-copy p {
    max-width: 560px;

    margin: 22px 0 0;

    color:
        rgba(255,255,255,.72);

    font-size: 15px;
    line-height: 1.7;
}


.module-strip {
    margin-top: auto;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;

    padding-top: 42px;
}


.module-item {
    min-width: 0;

    padding: 13px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 14px;

    background:
        rgba(255,255,255,.065);

    backdrop-filter: blur(6px);
}


.module-icon {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    margin-bottom: 9px;

    border-radius: 9px;

    color: #a8eee8;

    background:
        rgba(103, 223, 214, .11);

    font-size: 15px;
}


.module-item strong {
    display: block;

    margin-bottom: 3px;

    font-size: 12px;
}


.module-item span {
    display: block;

    color:
        rgba(255,255,255,.55);

    font-size: 10px;
    line-height: 1.4;
}


.acuity-ghost {
    position: absolute;

    z-index: 1;

    top: 70px;
    right: 45px;

    width: 205px;

    opacity: .055;

    color: #fff;

    font-family:
        Arial,
        sans-serif;

    font-weight: 800;

    text-align: center;

    pointer-events: none;

    transform:
        rotate(-3deg);
}


.acuity-ghost div {
    letter-spacing: .22em;
}


.acuity-ghost .r1 {
    font-size: 40px;
}


.acuity-ghost .r2 {
    font-size: 28px;
}


.acuity-ghost .r3 {
    font-size: 21px;
}


.acuity-ghost .r4 {
    font-size: 15px;
}


.acuity-ghost .r5 {
    font-size: 11px;
}


/* =========================================================
   LOGIN PANEL
========================================================= */

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        clamp(28px, 5vw, 58px);

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fbfdff
        );
}


.login-wrap {
    width: min(410px, 100%);
}


.mobile-brand {
    display: none;
}


.login-label {
    display: inline-flex;

    margin-bottom: 11px;

    color: var(--vt-primary);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .10em;

    text-transform: uppercase;
}


.login-wrap h2 {
    margin: 0;

    color: var(--vt-text);

    font-size: 33px;
    line-height: 1.08;

    letter-spacing: -.035em;
}


.login-subtitle {
    margin: 10px 0 25px;

    color: var(--vt-muted);

    font-size: 13px;
    line-height: 1.55;
}


.login-form {
    display: grid;

    gap: 16px;
}


.field {
    display: grid;

    gap: 7px;
}


.field label {
    color: var(--vt-text-soft);

    font-size: 12px;
    font-weight: 700;
}


.input-shell {
    position: relative;
}


.input-shell input {
    width: 100%;
    min-height: 49px;

    padding: 11px 46px 11px 43px;

    border:
        1px solid
        #d5dfeb;

    border-radius: 12px;

    outline: none;

    color: var(--vt-text);

    background: #fff;

    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}


.input-shell input::placeholder {
    color: var(--vt-muted-light);
}


.input-shell input:focus {
    border-color: #8eacef;

    box-shadow:
        0 0 0 4px
        rgba(45, 95, 210, .09);
}


.field-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    width: 18px;
    height: 18px;

    transform:
        translateY(-50%);

    display: grid;
    place-items: center;

    color: #8997aa;

    pointer-events: none;
}


.field-icon svg,
.password-toggle svg {
    width: 17px;
    height: 17px;
}


.password-toggle {
    position: absolute;

    right: 9px;
    top: 50%;

    transform:
        translateY(-50%);

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 8px;

    color: #78879a;

    background: transparent;
}


.password-toggle:hover {
    background: #f2f5f9;
}


.login-button {
    width: 100%;
    min-height: 49px;

    margin-top: 2px;

    border-radius: 12px;

    font-size: 13px;
}


.login-message {
    min-height: 20px;

    margin-top: 3px;

    font-size: 12px;
    line-height: 1.45;
}


.login-message.error {
    color: var(--vt-danger);
}


.login-message.success {
    color: var(--vt-success);
}


.role-note {
    margin-top: 23px;

    padding: 13px 14px;

    display: flex;
    gap: 10px;

    border:
        1px solid
        var(--vt-line);

    border-radius: 12px;

    background: #f8fafc;
}


.role-note-icon {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    color: var(--vt-teal);

    background: var(--vt-teal-soft);

    font-size: 13px;
    font-weight: 900;
}


.role-note strong {
    display: block;

    margin-bottom: 2px;

    color: var(--vt-text-soft);

    font-size: 11px;
}


.role-note span {
    display: block;

    color: var(--vt-muted);

    font-size: 10px;
    line-height: 1.45;
}


.login-footer {
    margin-top: 24px;

    color: var(--vt-muted-light);

    font-size: 9px;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   REDIRECT OVERLAY
========================================================= */

.redirect-overlay {
    position: fixed;

    inset: 0;
    z-index: 10000;

    display: grid;
    place-items: center;

    padding: 20px;

    background:
        rgba(239,244,251,.82);

    backdrop-filter: blur(7px);
}


.redirect-overlay.hidden {
    display: none;
}


.redirect-card {
    width: min(320px, 100%);

    padding: 24px;

    border:
        1px solid
        var(--vt-line);

    border-radius: 17px;

    background: #fff;

    box-shadow:
        0 22px 60px
        rgba(20,42,82,.14);

    text-align: center;
}


.redirect-spinner {
    width: 35px;
    height: 35px;

    margin: 0 auto 13px;

    border:
        3px solid
        #e6edf7;

    border-top-color:
        var(--vt-primary);

    border-radius: 50%;

    animation:
        index-spin
        .8s
        linear
        infinite;
}


@keyframes index-spin {
    to {
        transform:
            rotate(360deg);
    }
}


.redirect-card strong {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;
}


.redirect-card span {
    color: var(--vt-muted);

    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .portal-shell {
        padding: 18px;
    }


    .portal-card {
        min-height: auto;

        grid-template-columns: 1fr;
    }


    .brand-panel {
        min-height: 330px;

        padding: 32px;
    }


    .hero-copy {
        margin-top: 48px;
    }


    .hero-copy h1 {
        max-width: 650px;

        font-size:
            clamp(
                36px,
                7vw,
                53px
            );
    }


    .module-strip {
        padding-top: 35px;
    }


    .login-panel {
        padding: 42px 28px;
    }
}


@media (max-width: 620px) {

    body {
        background: #fff;
    }


    .portal-shell {
        padding: 0;
    }


    .portal-card {
        min-height: 100vh;

        border: 0;
        border-radius: 0;

        box-shadow: none;
    }


    .brand-panel {
        min-height: 235px;

        padding: 24px;
    }


    .index-brand {
        display: none;
    }


    .hero-copy {
        margin-top: 5px;
    }


    .hero-kicker {
        margin-bottom: 10px;

        font-size: 9px;
    }


    .hero-copy h1 {
        font-size: 35px;
    }


    .hero-copy p {
        margin-top: 13px;

        font-size: 12px;
        line-height: 1.55;
    }


    .module-strip {
        display: none;
    }


    .acuity-ghost {
        right: 5px;
        top: 28px;

        transform:
            scale(.78)
            rotate(-3deg);
    }


    .login-panel {
        padding: 31px 22px 36px;
    }


    .mobile-brand {
        display: flex;
        align-items: center;

        gap: 9px;

        margin-bottom: 25px;
    }


    .mobile-brand .vt-brand-mark {
        width: 40px;
        height: 40px;

        flex-basis: 40px;

        color: #fff;

        background:
            linear-gradient(
                145deg,
                var(--vt-navy),
                var(--vt-teal)
            );
    }


    .mobile-brand .index-brand-copy strong {
        color: var(--vt-text);

        font-size: 13px;
    }


    .mobile-brand .index-brand-copy span {
        color: var(--vt-muted);
    }


    .login-wrap h2 {
        font-size: 29px;
    }
}



/* V74 login responsive polish */
@media (max-width: 620px) {

    .portal-card {
        min-height: 100dvh;
    }


    .brand-panel {
        min-height: 205px;

        padding:
            max(
                22px,
                env(safe-area-inset-top)
            )
            20px
            22px;
    }


    .hero-copy h1 {
        max-width: 350px;

        font-size: 32px;
    }


    .login-panel {
        padding:
            27px
            max(
                18px,
                env(safe-area-inset-right)
            )
            calc(
                30px
                + env(safe-area-inset-bottom)
            )
            max(
                18px,
                env(safe-area-inset-left)
            );
    }


    .input-shell input {
        min-height: 48px;

        font-size: 16px;
    }


    .login-button {
        min-height: 48px;
    }
}


@media (max-height: 700px) and (max-width: 620px) {

    .brand-panel {
        min-height: 160px;
    }


    .hero-copy h1 {
        font-size: 28px;
    }


    .hero-copy p {
        display: none;
    }
}


/* V77 final polish */
.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}


.login-version {
    flex: 0 0 auto;

    padding:
        3px
        6px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 999px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .04em;
}


@media (max-width: 430px) {

    .login-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
