﻿/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
    --stage-ink: #04101c;
    --stage-violet: #2a2280;
    --stage-teal: #0d5462;
    --line: rgba(148,196,255,.055);
    --text-hi: #eaf2ff;
    --text-mid: rgba(214,229,247,.72);
    --text-low: rgba(196,215,238,.46);
    --mint: #3fd9bd;
    --mint-soft: #7ee8d2;
    --card: #ffffff;
    --card-ink: #0e1b2c;
    --card-mid: #64748b;
    --card-low: #94a3b8;
    --card-line: #e4e9f0;
    --card-field: #f7f9fc;
    --card-teal: #0f9e86;
    --danger: #e05260;
    --indigo: #5b5ef0;
    --indigo-deep: #4a4de4;
    --r-md: 14px;
    --r-lg: 22px;
    --ease: cubic-bezier(.16,1,.3,1);
    /* fluid sizing – shrinks with viewport height so everything fits */
    --pad-x: clamp(16px,3vw,44px);
    --pad-y: clamp(10px,2vh,18px);
    --field-h: clamp(40px,5.8vh,46px);
    --gap-y: clamp(6px,1vh,9px);
}

/* ============================================================
   2. BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden; /* no page-level scrollbar, even if the theme CSS sets one */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

body {
    margin: 0;
    font-family: "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    background: var(--stage-ink);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow: hidden; /* scrolling (if ever needed) happens inside .pages */
}

    body.is-locked {
        overflow: hidden;
    }

h1, h2, h3 {
    font-family: "Poppins","Inter",sans-serif;
    margin: 0;
    color: var(--text-hi);
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

svg {
    display: block;
    flex: none;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ============================================================
   3. KEYFRAMES
   ============================================================ */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes lineUp {
    from {
        transform: translateY(112%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.965);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes sheen {
    to {
        background-position: 200% center;
    }
}

@keyframes gridPan {
    to {
        background-position: 46px 46px, 46px 46px;
    }
}

@keyframes glowBreathe {
    0%,100% {
        opacity: .55;
        transform: scale(1);
    }

    50% {
        opacity: .9;
        transform: scale(1.07);
    }
}

@keyframes floatA {
    0%,100% {
        transform: translate(0,0) scale(1);
    }

    33% {
        transform: translate(4%,6%) scale(1.08);
    }

    66% {
        transform: translate(-3%,3%) scale(.96);
    }
}

@keyframes floatB {
    0%,100% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(-5%,-4%) scale(1.12);
    }
}

@keyframes floatC {
    0%,100% {
        transform: translate(0,0);
    }

    50% {
        transform: translate(3%,-5%);
    }
}

@keyframes beam {
    0% {
        transform: translate(-40%,-60%) rotate(20deg);
        opacity: 0;
    }

    12% {
        opacity: .4;
    }

    42% {
        opacity: 0;
    }

    100% {
        transform: translate(110%,50%) rotate(20deg);
        opacity: 0;
    }
}

@keyframes scan {
    0% {
        transform: translateY(-150%);
    }

    55%,100% {
        transform: translateY(150%);
    }
}

@keyframes dotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(63,217,189,.6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(63,217,189,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(63,217,189,0);
    }
}

@keyframes shine {
    from {
        transform: translateX(-130%) skewX(-20deg);
    }

    to {
        transform: translateX(260%) skewX(-20deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(34px) scale(.92);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.8);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes shake {
    10%,90% {
        transform: translateX(-2px);
    }

    20%,80% {
        transform: translateX(4px);
    }

    30%,50%,70% {
        transform: translateX(-8px);
    }

    40%,60% {
        transform: translateX(8px);
    }
}

@keyframes ripple {
    from {
        opacity: .5;
        transform: scale(.75);
    }

    to {
        opacity: 0;
        transform: scale(1.65);
    }
}

@keyframes drawRing {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawTick {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes burst {
    from {
        opacity: .5;
        transform: scale(.5);
    }

    to {
        opacity: 0;
        transform: scale(2);
    }
}

@keyframes barFill {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ============================================================
   4. PAGE SHELL + ATMOSPHERE
   ============================================================ */
.pages {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: var(--pad-y) var(--pad-x);
    overflow-x: hidden;
    overflow-y: auto; /* safety net: only scrolls if the screen is truly too small */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    isolation: isolate;
    background: linear-gradient(158deg,#0b1b3a 0%,#061426 55%,#04101c 100%);
    /* never show a scrollbar (wheel / touch scrolling still works on tiny screens) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* old Edge / IE */
}

    .pages::-webkit-scrollbar { /* Chrome, Edge, Safari */
        display: none;
        width: 0;
        height: 0;
    }

/* background layers are pinned to the viewport so they never scroll away */
.aurora {
    position: fixed;
    inset: -15%;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

    .aurora span {
        position: absolute;
        border-radius: 50%;
        filter: blur(70px);
        will-change: transform;
    }

    .aurora .a1 {
        width: 46vw;
        height: 46vw;
        top: -12%;
        left: -8%;
        background: radial-gradient(circle,var(--stage-violet) 0%,transparent 68%);
        opacity: .85;
        animation: floatA 26s ease-in-out infinite;
    }

    .aurora .a2 {
        width: 52vw;
        height: 52vw;
        top: 18%;
        right: -10%;
        background: radial-gradient(circle,var(--stage-teal) 0%,transparent 66%);
        opacity: .9;
        animation: floatB 32s ease-in-out infinite;
    }

    .aurora .a3 {
        width: 34vw;
        height: 34vw;
        bottom: -16%;
        left: 24%;
        background: radial-gradient(circle,#123a7a 0%,transparent 70%);
        opacity: .7;
        animation: floatC 38s ease-in-out infinite;
    }

    .aurora .beam {
        width: 34vw;
        height: 150vh;
        top: -25vh;
        left: 0;
        border-radius: 0;
        filter: blur(46px);
        background: linear-gradient(90deg,transparent,rgba(126,232,210,.16),transparent);
        animation: beam 17s ease-in-out 4s infinite;
    }

.pages::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 46px 46px;
    animation: gridPan 9s linear infinite;
    -webkit-mask-image: radial-gradient(92% 80% at 45% 40%,#000 32%,transparent 100%);
    mask-image: radial-gradient(92% 80% at 45% 40%,#000 32%,transparent 100%);
}

.pages::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E"), radial-gradient(120% 100% at 50% 50%,transparent 42%,rgba(2,8,18,.6) 100%);
    opacity: .9;
    mix-blend-mode: soft-light;
}

/* ============================================================
   5. MASTHEAD
   ============================================================ */
.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    flex: none;
    animation: rise .8s var(--ease) .05s both;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand__mark {
    position: relative;
    overflow: hidden;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--mint-soft);
    background: linear-gradient(150deg,rgba(63,217,189,.22),rgba(63,217,189,.05));
    border: 1px solid rgba(126,232,210,.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

    .brand__mark::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 38%;
        background: linear-gradient(180deg,transparent,rgba(126,232,210,.55),transparent);
        animation: scan 3.4s ease-in-out infinite;
    }

.brand__name {
    display: block;
    font-family: "Poppins",sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .02em;
    color: #fff;
    line-height: 1.2;
}

.brand__sub {
    display: block;
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mint);
}

.masthead__meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--text-mid);
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(6px);
}

.chip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
    animation: dotPulse 2.4s ease-out infinite;
}

.help {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: color .2s ease;
}

    .help:hover {
        color: #fff;
    }

/* ============================================================
   6. STAGE + HERO
   ============================================================ */
.stage {
    flex: 1 0 auto; /* fills the screen, grows (and scrolls) only if content can't fit */
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,clamp(380px,32vw,450px));
    gap: clamp(28px,5vw,80px);
    align-items: center;
    align-content: center;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(4px,1.5vh,20px) 0;
}

.hero {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    padding: 7px 16px 7px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mint-soft);
    background: rgba(63,217,189,.07);
    border: 1px solid rgba(126,232,210,.22);
    animation: rise .8s var(--ease) .22s both;
}

.hero__title {
    margin: clamp(12px,2.2vh,18px) 0 0;
    font-size: clamp(28px,min(3.6vw,6.4vh),54px);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -.022em;
}

.line {
    display: block;
    overflow: hidden;
    padding-bottom: .1em;
    margin-bottom: -.1em;
}

.line__in {
    display: block;
    transform: translateY(112%);
}

.line:nth-child(1) .line__in {
    animation: lineUp 1s var(--ease) .34s both;
}

.line:nth-child(2) .line__in {
    animation: lineUp 1s var(--ease) .46s both, sheen 9s linear 1.6s infinite;
}

.grad {
    background: linear-gradient(96deg,#4fdfc4 0%,#6db6f2 30%,#cfe6ff 50%,#4fdfc4 75%,#6db6f2 100%);
    background-size: 200% auto;
    background-position: 0 center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero__lede {
    margin-top: clamp(10px,1.8vh,16px);
    margin-bottom: clamp(14px,2.8vh,26px);
    max-width: 52ch;
    font-size: clamp(13px,1.9vh,15px);
    line-height: 1.6;
    color: #d6d2d2;
    animation: rise .8s var(--ease) .6s both;
}

/* feature tiles */
.tiles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    max-width: 600px;
}

.tile {
    position: relative;
    overflow: hidden;
    padding: clamp(10px,1.6vh,14px) 15px clamp(11px,1.8vh,16px);
    border-radius: var(--r-md);
    background: linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
    border: 1px solid rgba(255,255,255,.08);
    animation: rise .75s var(--ease) both;
    transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease;
}

    .tile:nth-child(1) {
        animation-delay: .72s;
    }

    .tile:nth-child(2) {
        animation-delay: .81s;
    }

    .tile:nth-child(3) {
        animation-delay: .90s;
    }

    .tile::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(120px 80px at 50% 0%,rgba(126,232,210,.16),transparent 70%);
        opacity: 0;
        transition: opacity .35s ease;
    }

@media (hover:hover) {
    .tile:hover {
        transform: translateY(-6px);
        border-color: rgba(126,232,210,.4);
        box-shadow: 0 22px 40px -26px rgba(63,217,189,.75);
    }

        .tile:hover::after {
            opacity: 1;
        }

        .tile:hover .tile__icon {
            transform: translateY(-2px) scale(1.06);
            color: #fff;
        }
}

.tile__tag {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mint);
}

    .tile__tag::before {
        content: "";
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--mint);
        box-shadow: 0 0 8px rgba(63,217,189,.9);
    }

.tile__icon {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--mint-soft);
    background: rgba(63,217,189,.1);
    border: 1px solid rgba(126,232,210,.24);
    transition: transform .35s var(--ease), color .35s ease;
}

.tile__title {
    position: relative;
    z-index: 1;
    margin: clamp(8px,1.4vh,13px) 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.tile__icon + .tile__title {
    margin-top: clamp(8px,1.3vh,11px);
}

.tile__note {
    position: relative;
    z-index: 1;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-low);
}

.legal {
    margin-top: clamp(10px,1.6vh,14px);
    font-size: 11.5px;
    color: var(--text-low);
}

/* ============================================================
   7. AUTH CARD (white)
   ============================================================ */
.auth {
    position: relative;
    min-width: 0;
    width: 100%;
    animation: cardIn 1s var(--ease) .5s both;
}

    .auth::before {
        content: "";
        position: absolute;
        inset: -16% -12%;
        z-index: -1;
        pointer-events: none;
        background: radial-gradient(closest-side,rgba(63,217,189,.24),transparent 76%);
        filter: blur(12px);
        animation: glowBreathe 7s ease-in-out infinite;
    }

.auth__card {
    background: var(--card);
    border-radius: var(--r-lg);
    padding: clamp(16px,2.6vh,26px) clamp(20px,2.2vw,30px) clamp(16px,2.8vh,26px);
    box-shadow: 0 40px 80px -34px rgba(2,10,25,.8), 0 2px 6px rgba(2,10,25,.2);
}

    .auth__card form {
        margin: 0;
    }

/* logo inside the card */
.n-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 260px;
    height: clamp(40px,8.5vh,84px);
    margin: 0 auto clamp(8px,1.6vh,16px);
}

    .n-logo img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

.ihits_logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

    .ihits_logo img {
        max-height: 40px;
        width: auto;
        object-fit: contain;
        display: block;
    }

.auth__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: clamp(4px,1vh,10px);
}

.auth__title {
    margin: 0;
    font-size: clamp(18px,2.6vh,21px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.015em;
    color: var(--card-ink);
}

.auth__sub {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--card-mid);
}

.auth__badge {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--card-teal);
    background: #e8faf5;
    border: 1px solid #cdf1e8;
    transition: transform .5s var(--ease);
}

.auth__card:hover .auth__badge {
    transform: rotate(-12deg) scale(1.06);
}

.field__label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--card-mid);
}

.field__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.field__row--forgot {
    justify-content: flex-end;
    margin-top: 12px;
}

/* inputs */
.control {
    position: relative;
    margin-top: var(--gap-y);
}

    .control input {
        width: 100%;
        height: var(--field-h);
        margin: 0;
        padding: 0 16px 0 46px;
        font: 400 14.5px/1 "Inter",sans-serif;
        color: var(--card-ink);
        background: var(--card-field);
        border: 1px solid var(--card-line);
        border-radius: var(--r-md);
        box-shadow: none;
        transition: border-color .2s ease, box-shadow .25s ease, background .2s ease;
    }

/* icon is pinned to the input itself, so error text below never shifts it */
.control__icon {
    position: absolute;
    top: calc(var(--field-h) / 2);
    left: 14px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: var(--card-low);
    pointer-events: none;
    transition: color .2s ease;
}

.control input:focus ~ .control__icon {
    color: var(--indigo);
}

.control input::placeholder {
    color: var(--card-low);
    opacity: 1;
}

.control input:hover {
    border-color: #d3dbe6;
}

.control input:focus {
    outline: none;
    background: #fff;
    border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(91,94,240,.14);
}

.control--pw input {
    padding-right: 50px;
}

.reveal {
    position: absolute;
    top: calc(var(--field-h) / 2);
    right: 6px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--card-low);
    border-radius: 9px;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

    .reveal:hover {
        color: var(--card-mid);
        background: #eef2f7;
    }

    .reveal .icon-off {
        display: none;
    }

    .reveal[aria-pressed="true"] .icon-on {
        display: none;
    }

    .reveal[aria-pressed="true"] .icon-off {
        display: block;
    }

/* captcha */
.captcha {
    display: flex;
    align-items: flex-start; /* stays aligned even when the error text shows */
    gap: 10px;
    margin-top: 0;
}

.captcha__control {
    flex: 1 1 auto;
    min-width: 0;
}

.captcha__box {
    width: 110px;
    flex: none;
    height: var(--field-h);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: var(--gap-y);
    border-radius: var(--r-md);
    border: 1px solid var(--card-line);
    overflow: hidden;
    user-select: none;
    background-color: #f8f8ff;
}

    .captcha__box span {
        display: inline-block;
        font-family: "Poppins",sans-serif;
        font-weight: 700;
        font-size: 20px;
        color: #334155;
        letter-spacing: .02em;
        text-shadow: 0 1px 0 rgba(255,255,255,.65);
    }

    .captcha__box img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

.captcha__refresh {
    width: var(--field-h);
    height: var(--field-h);
    flex: none;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--card-line);
    border-radius: var(--r-md);
    background: #fff;
    color: var(--card-mid);
    margin-top: var(--gap-y) !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

    .captcha__refresh svg {
        transition: transform .5s var(--ease);
    }

    .captcha__refresh:hover {
        background: #f6f8fc;
        color: var(--card-teal);
        border-color: #cfd8e5;
    }

        .captcha__refresh:hover svg {
            transform: rotate(-180deg);
        }

.captcha__error,
.captcha__control .error-message,
.captcha__control #cap:not(:empty) {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--danger);
}

/* invalid captcha (covers both server-rendered class variants) */
.control input.is-invalid,
.control input.is-invalid:focus,
.control .captchaTxtBox.input-validation-error,
.control .captchaTxtBox.input-validation-error:focus {
    padding-right: 44px !important;
    border-color: var(--danger) !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23e05260' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e05260' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 18px 18px !important;
}

    .control input.is-invalid:focus,
    .control .captchaTxtBox.input-validation-error:focus {
        box-shadow: 0 0 0 4px rgba(224,82,96,.14) !important;
    }

    .control input.is-invalid ~ .control__icon,
    .control .captchaTxtBox.input-validation-error ~ .control__icon {
        color: var(--danger);
    }

.link-teal {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--card-teal);
    transition: color .2s ease;
}

    .link-teal:hover {
        color: #0b7f6c;
        text-decoration: underline;
    }

.remember {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--card-mid);
    cursor: pointer;
    user-select: none;
}

    .remember input {
        appearance: none;
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        margin: 0;
        flex: none;
        border: 1.5px solid #cbd5e1;
        border-radius: 6px;
        background: #fff;
        display: grid;
        place-items: center;
        transition: background .18s ease, border-color .18s ease;
    }

        .remember input::after {
            content: "";
            width: 9px;
            height: 5px;
            margin-top: -2px;
            border-left: 2px solid #fff;
            border-bottom: 2px solid #fff;
            transform: rotate(-45deg) scale(.4);
            opacity: 0;
            transition: opacity .16s ease, transform .22s var(--ease);
        }

        .remember input:checked {
            background: var(--indigo);
            border-color: var(--indigo);
        }

            .remember input:checked::after {
                opacity: 1;
                transform: rotate(-45deg) scale(1);
            }

/* primary button */
.submit {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: var(--field-h);
    margin-top: clamp(12px,2vh,18px);
    border: 0;
    border-radius: var(--r-md);
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    background: var(--indigo);
    box-shadow: 0 14px 26px -14px rgba(91,94,240,.9);
    transition: background .2s ease, transform .12s ease, box-shadow .25s ease;
}

    .submit::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 45%;
        background: linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent);
        transform: translateX(-130%) skewX(-20deg);
    }

    .submit:hover {
        background: var(--indigo-deep);
        box-shadow: 0 20px 34px -14px rgba(91,94,240,1);
    }

        .submit:hover::after {
            animation: shine .85s ease-out;
        }

    .submit:active {
        transform: translateY(1px);
    }

    .submit[disabled] {
        opacity: .72;
        cursor: not-allowed;
    }

.submit__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    animation: spin .7s linear infinite;
}

/* forgot / version / message under the button */
.auth__card .text-center {
    margin-top: clamp(8px,1.4vh,12px);
}

#kt_login_forgot {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--card-teal);
    transition: color .2s ease;
}

    #kt_login_forgot:hover {
        color: #0b7f6c;
        text-decoration: underline;
    }

.version {
    margin-top: 2px;
    text-align: center;
    line-height: 1.2;
}

    .version label {
        margin: 0;
        font-size: 12px;
    }

.auth__card .form-group.text-center {
    margin: 4px 0 0;
    min-height: 0;
    font-size: 12.5px;
    line-height: 1.4;
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 30px 0 18px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--card-low);
}

    .divider::before, .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--card-line);
    }

.quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 50px;
    padding: 0 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    background: #fff;
    border: 1px solid var(--card-line);
    border-radius: var(--r-md);
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .25s var(--ease);
}

    .quick__btn svg {
        color: var(--card-mid);
        transition: color .2s ease, transform .4s var(--ease);
    }

    .quick__btn:hover {
        background: #f6f8fc;
        border-color: #cfd8e5;
        color: var(--card-ink);
        transform: translateY(-2px);
    }

        .quick__btn:hover svg {
            color: var(--card-teal);
            transform: scale(1.12);
        }

.auth__note {
    margin-top: 16px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-low);
}

/* ============================================================
   7b. THEME HARDENING
   style.bundle.css / Bootstrap load after this file and would
   otherwise override heading colours, margins and inputs.
   ============================================================ */
.pages .hero__title,
.pages .tile__title {
    color: var(--text-hi);
}

.pages .hero__title,
.pages .tile__title,
.pages .auth__title {
    margin-bottom: 0;
}

.pages .auth__title {
    color: var(--card-ink);
}

.pages .control input.form-control {
    height: var(--field-h);
    padding-left: 46px;
    font-size: 14.5px;
    line-height: 1;
}

/* ============================================================
   8. COLOPHON
   ============================================================ */
.colophon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 22px;
    font-size: 12.5px;
    color: var(--text-low);
    animation: rise .8s var(--ease) 1s both;
}

    .colophon nav {
        display: flex;
        gap: 26px;
    }

    .colophon a {
        transition: color .2s ease;
    }

        .colophon a:hover {
            color: var(--text-hi);
        }

/* ============================================================
   9. VERIFY MODAL
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

    .modal.is-open {
        opacity: 1;
        visibility: visible;
    }

.modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(3,10,22,.62);
    backdrop-filter: blur(7px);
}

.modal__panel {
    position: relative;
    width: min(430px,100%);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    background: var(--card);
    color: var(--card-ink);
    border-radius: var(--r-lg);
    padding: 34px 32px 30px;
    box-shadow: 0 50px 90px -30px rgba(2,10,25,.85);
    text-align: center;
}

.modal.is-open .modal__panel {
    animation: panelIn .55s cubic-bezier(.18,1.1,.35,1) both;
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--card-low);
    transition: background .2s ease, color .2s ease, transform .3s var(--ease);
}

    .modal__close:hover {
        background: #f1f5f9;
        color: var(--card-ink);
        transform: rotate(90deg);
    }

.modal__badge {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 2px auto 0;
    display: grid;
    place-items: center;
    border-radius: 19px;
    color: var(--card-teal);
    background: #e8faf5;
    border: 1px solid #cdf1e8;
}

    .modal__badge i {
        position: absolute;
        inset: 0;
        border-radius: 19px;
        border: 1.5px solid rgba(15,158,134,.45);
        animation: ripple 2.6s ease-out infinite;
    }

        .modal__badge i:nth-of-type(2) {
            animation-delay: 1.3s;
        }

.modal__title {
    margin-top: 18px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--card-ink);
}

.modal__copy {
    margin-top: 9px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--card-mid);
}

    .modal__copy strong {
        color: var(--card-ink);
        font-weight: 600;
    }

.otp {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
}

    .otp input {
        width: 100%;
        max-width: 54px;
        min-width: 0;
        height: 60px;
        padding: 0;
        font-family: "Poppins",sans-serif;
        font-size: 22px;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        text-align: center;
        color: var(--card-ink);
        background: var(--card-field);
        border: 1.5px solid var(--card-line);
        border-radius: 13px;
        caret-color: var(--indigo);
        animation: popIn .45s var(--ease) both;
        transition: border-color .18s ease, box-shadow .25s ease, background .18s ease, transform .18s ease;
    }

.modal.is-open .otp input:nth-child(1) {
    animation-delay: .26s;
}

.modal.is-open .otp input:nth-child(2) {
    animation-delay: .32s;
}

.modal.is-open .otp input:nth-child(3) {
    animation-delay: .38s;
}

.modal.is-open .otp input:nth-child(4) {
    animation-delay: .44s;
}

.modal.is-open .otp input:nth-child(5) {
    animation-delay: .50s;
}

.modal.is-open .otp input:nth-child(6) {
    animation-delay: .56s;
}

.otp input:not(:placeholder-shown) {
    background: #fff;
    border-color: #c7cbf7;
}

.otp input:focus {
    outline: none;
    background: #fff;
    border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(91,94,240,.16);
    transform: translateY(-2px);
}

.otp.is-wrong {
    animation: shake .5s ease;
}

    .otp.is-wrong input {
        border-color: var(--danger);
    }

.otp__error {
    margin-top: 12px;
    min-height: 18px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--danger);
}

.resend {
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--card-mid);
}

    .resend button {
        border: 0;
        background: none;
        padding: 0;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--card-teal);
    }

        .resend button:hover:not([disabled]) {
            text-decoration: underline;
        }

        .resend button[disabled] {
            color: var(--card-low);
            cursor: default;
        }

.resend--hint {
    margin-top: 6px;
    color: var(--card-low);
}

.tick {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 6px auto 0;
}

.tick__burst {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(15,158,134,.4),transparent 70%);
    animation: burst .9s ease-out .35s both;
}

.tick svg {
    position: relative;
    width: 88px;
    height: 88px;
}

.tick .ring {
    fill: none;
    stroke: #12b394;
    stroke-width: 3.5;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    animation: drawRing .7s var(--ease) both;
}

.tick .mark {
    fill: none;
    stroke: #12b394;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawTick .35s ease-out .55s both;
}

.bar {
    height: 4px;
    margin-top: 26px;
    border-radius: 99px;
    background: #eef2f7;
    overflow: hidden;
}

    .bar span {
        display: block;
        height: 100%;
        border-radius: 99px;
        background: linear-gradient(90deg,var(--card-teal),var(--indigo));
        transform-origin: left;
        transform: scaleX(0);
        animation: barFill 2.2s linear .3s both;
    }

/* ============================================================
   10. RESPONSIVE
   ============================================================ */

/* ---- large / wide monitors ---- */
@media (min-width:1600px) and (min-height:860px) {
    .stage {
        max-width: 1440px;
        grid-template-columns: minmax(0,1fr) minmax(0,470px);
    }

    .tiles {
        max-width: 660px;
    }
}

/* ---- tablets & small laptops: stacked, centred ---- */
@media (max-width:1080px) {
    .stage {
        grid-template-columns: minmax(0,1fr);
        gap: clamp(20px,3.5vh,32px);
        align-items: start;
        justify-items: center;
        padding: clamp(8px,2vh,20px) 0;
    }

    .hero {
        width: 100%;
        max-width: 680px;
        align-items: center;
        text-align: center;
    }

    .eyebrow {
        align-self: center;
    }

    .hero__title {
        font-size: clamp(30px,5.2vw,46px);
    }

    .hero__lede {
        margin-left: auto;
        margin-right: auto;
    }

    .tiles {
        width: 100%;
        max-width: none;
    }

    .tile__icon {
        margin: 0 auto;
    }

    .auth {
        max-width: 460px;
    }
}

/* ---- phones: put the sign-in card right under the title ---- */
@media (max-width:720px) {
    :root {
        --pad-x: 16px;
        --pad-y: 14px;
        --field-h: 46px;
        --gap-y: 9px;
    }

    .stage {
        gap: 16px;
        padding: 6px 0 4px;
    }

    /* let hero children join the grid so they can be re-ordered */
    .hero {
        display: contents;
    }

    .eyebrow {
        order: 1;
        justify-self: center;
    }

    .hero__title {
        order: 2;
        margin: 0;
        width: 100%;
        text-align: center;
        font-size: clamp(26px,8vw,38px);
    }

    .auth {
        order: 3;
    }

    .hero__lede {
        order: 4;
        margin: 4px auto 0;
        text-align: center;
        font-size: 14px;
    }

    .tiles {
        order: 5;
        max-width: 460px;
    }

    .legal {
        order: 6;
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .masthead__meta .chip {
        display: none;
    }

    .auth__card {
        padding: 20px 20px 20px;
    }

    .auth::before {
        inset: -8% -6%;
    }

    .n-logo {
        height: 64px;
    }

    .otp {
        gap: 6px;
    }

        .otp input {
            height: 54px;
            font-size: 19px;
        }

    .modal__panel {
        padding: 28px 20px 24px;
    }
}

/* ---- small phones: tiles become compact rows ---- */
@media (max-width:560px) {
    .tiles {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tile {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 12px;
        align-items: center;
        padding: 11px 14px;
        text-align: left;
    }

    .tile__icon {
        grid-row: span 2;
        margin: 0;
    }

        .tile__title,
        .tile__icon + .tile__title {
            margin: 0;
            align-self: end;
        }

    .tile__note {
        margin: 2px 0 0;
        align-self: start;
    }
}

/* ---- very narrow phones (≤400px): captcha wraps onto two rows ---- */
@media (max-width:400px) {
    .auth__card {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .auth__title {
        font-size: 18px;
    }

    .captcha {
        flex-wrap: wrap;
        gap: 0 10px;
    }

    .captcha__control {
        flex: 1 1 100%;
    }

    .captcha__box {
        flex: 1 1 auto;
        width: auto;
    }

    .n-logo {
        height: 56px;
    }
}

/* ---- phones in landscape / very short stacked screens ---- */
@media (max-width:1080px) and (max-height:520px) {
    :root {
        --field-h: 42px;
        --gap-y: 7px;
    }

    .n-logo {
        height: 44px;
        margin-bottom: 8px;
    }

    .hero__title {
        font-size: clamp(24px,4.5vw,34px);
    }
}

/* ---- short desktop / laptop screens: tighten the hero ---- */
@media (min-width:1081px) and (max-height:700px) {
    .eyebrow {
        padding: 5px 13px 5px 11px;
        font-size: 10px;
    }

    .tile__icon {
        width: 28px;
        height: 28px;
    }

    .tile__note {
        font-size: 11.5px;
    }

    .auth__sub {
        margin-top: 3px;
    }
}

/* ---- extremely short desktop windows: drop secondary hero copy ---- */
@media (min-width:1081px) and (max-height:560px) {
    .tile__note {
        display: none;
    }

    .hero__lede {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ============================================================
   11. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .line__in {
        transform: none;
    }
}
