:root {
    --auth-blue: var(--primary-color, #1278d3);
    --auth-green: var(--secondary-color, #00bd87);
}

* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    color: var(--text-color);
    background: #fff;
    font-family: var(--font-family, Inter, sans-serif);
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(440px, 0.92fr) minmax(520px, 1.08fr);
}

.auth-showcase {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(34px, 5vw, 76px);
    isolation: isolate;
    color: #fff;
    background: linear-gradient(148deg, #0e71c7 0%, #137fd6 52%, #0d65b5 100%);
    padding-top: 30px;
    padding-bottom:30px;
}

    .auth-showcase::before {
        content: "";
        position: absolute;
        width: 620px;
        height: 620px;
        border: 1px solid rgba(255, 255, 255, 0.11);
        border-radius: 50%;
        top: 12%;
        left: -26%;
        z-index: -1;
        box-shadow: 0 0 0 56px rgba(255, 255, 255, 0.025), 0 0 0 112px rgba(255, 255, 255, 0.02);
    }

    .auth-showcase::after {
        content: "";
        position: absolute;
        width: 470px;
        height: 470px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        right: -26%;
        bottom: 8%;
        z-index: -1;
        box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.025), 0 0 0 84px rgba(255, 255, 255, 0.02);
    }

.showcase-grid {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.showcase-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    z-index: -1;
}

.orb-one {
    width: 250px;
    height: 250px;
    top: 22%;
    right: -80px;
    background: radial-gradient(circle at 35% 35%, rgba(184, 255, 241, 0.3), rgba(184, 255, 241, 0));
}

.orb-two {
    width: 320px;
    height: 320px;
    left: 18%;
    bottom: 12%;
    background: radial-gradient(circle at 50% 50%, rgba(97, 206, 255, 0.18), rgba(97, 206, 255, 0));
}

.auth-brand {
    width: max-content;
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    text-decoration: none;
    line-height: 1;
    align-items: center;
}

    .auth-brand img {
        height: auto;
        width: 50%;
    }

.brand-word {
    font-size: 39px;
    font-weight: 800;
    letter-spacing: -0.075em;
    line-height: 0.96;
}

    .brand-word span {
        color: #fff;
    }

    .brand-word b {
        color: #9df2d9;
        font-weight: 800;
    }

.auth-brand small {
    padding-left: 4px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.showcase-brand {
    position: relative;
    z-index: 2;
    align-items: flex-start;
}

    .showcase-brand img {
        width: 40%;
    }

.showcase-copy {
    position: relative;
    z-index: 2;
    max-width: 570px;
    margin: 24px auto 24px;
    width: 100%;
}

.showcase-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #d9fff4;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.showcase-copy h1 {
    margin: 26px 0 17px;
    font-size: clamp(42px, 4.4vw, 68px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -0.06em;
}

    .showcase-copy h1 span {
        color: #a9f3dc;
    }

.showcase-copy > p {
    max-width: 475px;
    margin: 0;
    color: rgba(255, 255, 255, 0.79);
    font-size: 15px;
    line-height: 1.8;
}

.showcase-benefits {
    display: grid;
    gap: 17px;
    margin-top: 37px;
}

    .showcase-benefits > div {
        display: flex;
        align-items: center;
        gap: 13px;
    }

.benefit-icon,
.signup-highlight-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 13px;
    color: #b7ffe8;
    background: rgba(255, 255, 255, 0.13);
    font-size: 17px;
}

.showcase-benefits strong,
.showcase-benefits small,
.signup-highlight strong,
.signup-highlight small {
    display: block;
}

.showcase-benefits strong,
.signup-highlight strong {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.showcase-benefits small,
.signup-highlight small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.signup-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: 100%;
    margin-top: 36px;
    padding: 15px 19px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(9px);
}

.showcase-foot {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 10px;
    font-weight: 500;
}

    .showcase-foot i {
        margin-right: 5px;
        color: #a9f3dc;
    }

.showcase-wave {
    position: absolute;
    z-index: 0;
    width: 100%;
    height: 160px;
    left: 0;
    bottom: 0;
    opacity: 0.52;
    pointer-events: none;
}

.auth-content {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 31px clamp(28px, 5vw, 78px) 22px;
    background: #fff;
}

.auth-content-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 48px;
}

.mobile-brand {
    display: none;
}

.help-link {
    color: #8290a1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

    .help-link:hover {
        color: var(--auth-blue);
    }

    .help-link i {
        margin-left: 4px;
    }

.auth-card-wrap {
    width: 100%;
    max-width: 450px;
    margin: 24px auto 26px;
}

.auth-card {
    padding: 0;
}

.auth-tabs {
    display: flex;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid #edf1f5;
    margin-bottom: 34px;
}

.auth-tab {
    position: relative;
    padding: 0 0 15px;
    color: #98a3af;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

    .auth-tab:hover,
    .auth-tab.active {
        color: var(--auth-blue);
    }

        .auth-tab.active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -1px;
            height: 3px;
            border-radius: 3px 3px 0 0;
            background: var(--auth-blue);
        }

.auth-heading {
    margin-bottom: 29px;
}

.auth-eyebrow {
    color: var(--auth-green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.auth-heading h2 {
    margin: 9px 0 9px;
    color: #2e3c4c;
    font-size: clamp(26px, 2.4vw, 32px);
    font-weight: 700;
    letter-spacing: -0.045em;
}

.auth-heading p {
    margin: 0;
    color: #8793a1;
    font-size: 12px;
    line-height: 1.75;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

    .auth-form .form-label {
        margin-bottom: 9px;
        color: #354657;
        font-size: 12px;
        font-weight: 650;
    }

.phone-field,
.text-field {
    display: flex;
    align-items: center;
    min-height: 54px;
    width: 100%;
    padding: 0 15px;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

    .phone-field:focus-within,
    .text-field:focus-within {
        border-color: var(--auth-blue);
        box-shadow: 0 0 0 3px rgba(18, 120, 211, 0.09);
    }

    .phone-field.is-invalid,
    .text-field.is-invalid {
        border-color: var(--danger-color);
        box-shadow: 0 0 0 3px rgba(255, 100, 103, 0.08);
    }

.country-code {
    color: #505780;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.phone-divider {
    width: 1px;
    height: 22px;
    margin: 0 13px;
    background: #e1e8ef;
}

.phone-field input,
.text-field input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #344040;
    font: 500 13px var(--font-family);
}

    .phone-field input::placeholder,
    .text-field input::placeholder {
        color: #a5afbb;
        font-weight: 400;
    }

.phone-field-icon,
.text-field > i {
    color: var(--auth-blue);
    font-size: 17px;
}

.text-field {
    gap: 11px;
}

    .text-field input {
        width: 100%;
    }

.field-group {
    margin-bottom: 17px;
}

.field-error {
    min-height: 0;
    margin-top: 5px;
    color: #e34d5b;
    font-size: 10px;
}

.auth-primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 53px;
    margin-top: 21px;
    padding: 0 20px;
    border: 1px solid var(--auth-blue);
    border-radius: 10px;
    color: #fff;
    background: var(--auth-blue);
    box-shadow: 0 6px 15px rgba(18, 120, 211, 0.16);
    font: 700 14px var(--font-family);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

    .auth-primary-btn:hover {
        transform: translateY(-1px);
        color: #fff;
        background: #0969bd;
        box-shadow: 0 8px 20px rgba(18, 120, 211, 0.21);
    }

    .auth-primary-btn:disabled {
        opacity: 0.7;
        cursor: wait;
    }

    .auth-primary-btn i {
        font-size: 16px;
    }

.auth-secure-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 14px 0 0;
    color: #9aa5b1;
    font-size: 10px;
}

    .auth-secure-note i {
        color: var(--auth-green);
    }

.auth-divider {
    position: relative;
    margin: 33px 0 17px;
    text-align: center;
}

    .auth-divider::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #edf1f5;
    }

    .auth-divider span {
        position: relative;
        padding: 0 12px;
        color: #a2acb7;
        background: #fff;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.12em;
    }

.auth-switch-copy {
    margin: 0;
    color: #8592a0;
    text-align: center;
    font-size: 11px;
    line-height: 1.7;
}

    .auth-switch-copy a,
    .auth-legal a,
    .auth-checkbox a {
        color: var(--auth-blue);
        text-decoration: none;
        font-weight: 700;
    }

        .auth-switch-copy a:hover,
        .auth-legal a:hover,
        .auth-checkbox a:hover {
            text-decoration: underline;
        }

.auth-legal {
    margin: 18px 0 0;
    color: #a0a9b3;
    text-align: center;
    font-size: 10px;
    line-height: 1.7;
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #a6afb9;
    font-size: 9px;
}

.optional-label {
    margin-left: 6px;
    color: #a8b2bd;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 3px;
    color: #8592a0;
    cursor: pointer;
    font-size: 10px;
    line-height: 1.6;
}

    .auth-checkbox input {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
    }

.custom-check {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    border: 1px solid #cbd7e2;
    border-radius: 4px;
    background: #fff;
}

.auth-checkbox input:checked + .custom-check {
    border-color: var(--auth-blue);
    background: var(--auth-blue);
}

    .auth-checkbox input:checked + .custom-check::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 1px;
        width: 4px;
        height: 8px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.auth-checkbox input:focus-visible + .custom-check {
    outline: 3px solid rgba(18, 120, 211, 0.18);
}

.signup-card .auth-tabs {
    margin-bottom: 25px;
}

.signup-card .auth-heading {
    margin-bottom: 21px;
}

.signup-card .auth-primary-btn {
    margin-top: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    color: #8391a0;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

    .back-link:hover {
        color: var(--auth-blue);
    }

.otp-card {
    max-width: 430px;
    margin: 0 auto;
}

.otp-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 16px;
    color: var(--auth-blue);
    background: #eaf5ff;
    font-size: 22px;
}

.otp-card .auth-heading strong {
    color: #4a5a6b;
    font-weight: 700;
}

.otp-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    margin-top: 5px;
}

.otp-digit {
    width: 52px;
    height: 58px;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
    outline: 0;
    color: #344040;
    background: #fff;
    text-align: center;
    font: 700 21px var(--font-family);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

    .otp-digit:focus {
        border-color: var(--auth-blue);
        box-shadow: 0 0 0 3px rgba(18, 120, 211, 0.1);
    }

    .otp-digit.filled {
        border-color: #9ecbf0;
        background: #f7fbff;
    }

.otp-gap {
    width: 6px;
}

.otp-error {
    margin-top: 8px;
}

.resend-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 21px;
    color: #8d99a6;
    font-size: 10px;
}

    .resend-row button {
        padding: 0;
        border: 0;
        color: var(--auth-blue);
        background: none;
        font: 700 10px var(--font-family);
    }

        .resend-row button:disabled {
            color: #9ba7b2;
            cursor: default;
        }

.demo-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 22px 0 0;
    padding: 11px 12px;
    border-radius: 8px;
    color: #8493a2;
    background: #f5f8fb;
    font-size: 9px;
    line-height: 1.65;
}

    .demo-note i {
        color: var(--auth-blue);
    }

.auth-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 17px;
    background: #fff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .auth-loader.is-hidden {
        opacity: 0;
        visibility: hidden;
    }

.auth-brand-loader .brand-word span {
    color: var(--auth-blue);
}

.auth-brand-loader .brand-word b {
    color: var(--auth-green);
}

.auth-brand-loader small {
    color: #6d7890;
}

.auth-loader-line {
    width: 105px;
    height: 3px;
    overflow: hidden;
    border-radius: 5px;
    background: #e8f1f8;
}

    .auth-loader-line i {
        display: block;
        width: 42%;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--auth-blue), var(--auth-green));
        animation: auth-loading 1s ease-in-out infinite;
    }

@keyframes auth-loading {
    from {
        transform: translateX(-110%);
    }

    to {
        transform: translateX(260%);
    }
}

.auth-toast {
    position: fixed;
    z-index: 4000;
    right: 24px;
    bottom: 24px;
    max-width: min(360px, calc(100vw - 48px));
    padding: 13px 16px;
    border: 1px solid #d7e8f5;
    border-radius: 10px;
    color: #345;
    background: #fff;
    box-shadow: 0 12px 35px rgba(22, 52, 83, 0.13);
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

    .auth-toast.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

@media (max-width: 991.98px) {
    .auth-layout {
        grid-template-columns: minmax(330px, 0.8fr) minmax(460px, 1.2fr);
    }

    .auth-showcase {
        padding: 34px;
    }

    .showcase-copy h1 {
        font-size: 46px;
    }

    .auth-content {
        padding: 25px 35px 20px;
    }
}

@media (max-width: 767.98px) {
    .auth-layout {
        display: block;
    }

    .auth-showcase {
        display: none;
    }

    .auth-content {
        min-height: 100vh;
        padding: 20px 22px 17px;
        background: linear-gradient(3deg, #bbefe0 0%, #ffffff 100%, #00000000);
    }

    .auth-content-top {
        justify-content: space-between;
    }

    .mobile-brand {
        display: inline-flex;
        align-items:self-start;
    }

        .mobile-brand .brand-word {
            font-size: 29px;
        }

            .mobile-brand .brand-word span {
                color: var(--auth-blue);
            }

            .mobile-brand .brand-word b {
                color: var(--auth-green);
            }

        .mobile-brand small {
            color: #65758a;
            font-size: 8px;
        }

    .auth-card-wrap {
        max-width: 440px;
        margin: 35px auto 28px;
    }

    .auth-tabs {
        margin-bottom: 29px;
    }

    .auth-heading h2 {
        font-size: 28px;
    }

    .auth-footer {
        font-size: 8px;
    }

    .signup-card .auth-heading h2 {
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    .auth-content {
        padding-inline: 17px;
    }

    .otp-inputs {
        gap: 6px;
    }

    .otp-digit {
        width: 43px;
        height: 54px;
    }

    .otp-gap {
        width: 3px;
    }

    .auth-footer span:last-child {
        display: none;
    }
}

@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;
    }
}

/* Light, wave-led treatment aligned with the Grokaro mobile authentication reference. */
.auth-showcase {
    color: var(--text-color);
    background: linear-gradient(155deg, #ffffff 0%, #fbfdff 61%, #f5fbff 100%);
    border-right: 1px solid #edf3f8;
}

    .auth-showcase::before {
        border-color: rgba(18, 120, 211, 0.09);
        box-shadow: 0 0 0 56px rgba(18, 120, 211, 0.025), 0 0 0 112px rgba(0, 189, 135, 0.018);
    }

    .auth-showcase::after {
        border-color: rgba(0, 189, 135, 0.11);
        box-shadow: 0 0 0 42px rgba(0, 189, 135, 0.025), 0 0 0 84px rgba(18, 120, 211, 0.018);
    }

.showcase-grid {
    opacity: 0.22;
    background-image: linear-gradient(rgba(18, 120, 211, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 120, 211, 0.07) 1px, transparent 1px);
}

.orb-one {
    background: radial-gradient(circle at 35% 35%, rgba(18, 120, 211, 0.13), rgba(18, 120, 211, 0));
}

.orb-two {
    background: radial-gradient(circle at 50% 50%, rgba(0, 189, 135, 0.12), rgba(0, 189, 135, 0));
}

.auth-brand .brand-word span {
    color: var(--auth-blue);
}

.auth-brand .brand-word b {
    color: var(--auth-green);
}

.auth-brand small {
    color: #66758a;
}

.showcase-kicker {
    color: #1174c8;
    background: #edf7ff;
    border-color: #dceefb;
}

.showcase-copy h1 {
    color: #2f4051;
}

    .showcase-copy h1 span {
        color: var(--auth-green);
    }

.showcase-copy > p {
    color: #7b8998;
}

.benefit-icon,
.signup-highlight-icon {
    color: var(--auth-blue);
    background: #edf7ff;
    border-color: #dceefb;
}

.showcase-benefits strong,
.signup-highlight strong {
    color: #354657;
}

.showcase-benefits small,
.signup-highlight small {
    color: #8a97a5;
}

.signup-highlight {
    border-color: #e4edf5;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 26px rgba(28, 80, 124, 0.055);
}

.showcase-foot {
    color: #97a3b1;
}

    .showcase-foot i {
        color: var(--auth-green);
    }

.showcase-wave {
    opacity: 0.67;
}

@media (max-width: 767.98px) {
    .auth-showcase {
        display: none;
    }
}

/* Grokaro new-partner onboarding flow */
.onboarding-page {
    min-height: 100vh;
    background: #f5f8fc;
}

.onboarding-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.onboarding-header {
    min-height: 82px;
    padding: 17px clamp(22px, 5vw, 76px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border-bottom: 1px solid #eaf0f5;
}

    .onboarding-header .brand-word {
        font-size: 32px;
    }

.onboarding-header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.secure-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #25856c;
    background: #eaf9f4;
    border: 1px solid #d5f1e7;
    border-radius: 30px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 650;
}

.onboarding-main {
    width: min(100% - 32px, 850px);
    margin: 42px auto 28px;
    flex: 1;
}

.onboarding-intro {
    text-align: center;
    margin-bottom: 28px;
}

    .onboarding-intro h1 {
        margin: 8px 0;
        color: #2f4051;
        font-size: clamp(25px, 3vw, 34px);
        font-weight: 750;
        letter-spacing: -0.045em;
    }

    .onboarding-intro p {
        margin: 0;
        color: #8190a0;
        font-size: 13px;
    }

.onboarding-progress {
    width: min(100%, 460px);
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9aa7b4;
    white-space: nowrap;
}

    .progress-step span {
        width: 29px;
        height: 29px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        border: 1px solid #dbe5ee;
        background: #fff;
        font-size: 11px;
        font-weight: 700;
    }

    .progress-step small {
        font-size: 11px;
        font-weight: 650;
    }

    .progress-step.active {
        color: var(--auth-blue);
    }

        .progress-step.active span,
        .progress-step.completed span {
            color: #fff;
            border-color: var(--auth-blue);
            background: var(--auth-blue);
        }

.onboarding-progress > i {
    height: 1px;
    flex: 1;
    max-width: 100px;
    margin: 0 14px;
    background: #dce6ef;
}

.onboarding-card {
    min-height: 430px;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid #e5edf4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(31, 70, 108, 0.07);
}

.onboarding-stage {
    display: none;
}

    .onboarding-stage.active {
        display: block;
        animation: stageIn 0.25s ease both;
    }

@keyframes stageIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stage-illustration {
    position: relative;
    width: 170px;
    height: 150px;
    margin: 0 auto 17px;
    display: grid;
    place-items: center;
}

.illustration-halo {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, #e8f4ff 0%, #f5fbff 67%, transparent 68%);
}

.phone-illustration {
    position: relative;
    width: 76px;
    height: 130px;
    padding: 6px;
    border: 4px solid #18345d;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(21, 74, 129, 0.12);
    transform: rotate(-5deg);
}

.phone-speaker {
    position: absolute;
    z-index: 2;
    width: 27px;
    height: 5px;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 5px 5px;
    background: #18345d;
}

.phone-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff, #edf6ff);
}

.digilocker-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #5143e8;
    border-radius: 11px;
    background: #e5e3ff;
    font-size: 23px;
}

.phone-screen strong {
    color: #243b63;
    font-size: 8px;
}

.phone-screen small {
    color: #8b98aa;
    font-size: 5px;
}

.phone-check {
    position: absolute;
    right: -9px;
    bottom: 12px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #1384e6;
    font-size: 13px;
}

.float-token {
    position: absolute;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 14px;
    box-shadow: 0 6px 15px rgba(31, 70, 108, 0.08);
}

.token-blue {
    left: 13px;
    top: 35px;
    color: #2584df;
    background: #e2f1ff;
}

.token-green {
    right: 11px;
    top: 28px;
    color: #1ba77e;
    background: #e0f8ef;
}

.stage-heading {
    margin: 0 auto 23px;
    max-width: 570px;
}

    .stage-heading h2 {
        margin: 7px 0;
        color: #2f4051;
        font-size: 25px;
        font-weight: 750;
        letter-spacing: -0.035em;
    }

    .stage-heading p {
        margin: 0;
        color: #8290a0;
        font-size: 12px;
        line-height: 1.75;
    }

.digilocker-options {
    display: grid;
    gap: 11px;
    max-width: 610px;
    margin: 0 auto;
}

.digilocker-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid #dce7f1;
    border-radius: 12px;
    text-align: left;
    background: #fff;
    transition: 0.18s ease;
}

    .digilocker-option:hover,
    .digilocker-option:focus-visible {
        border-color: #1683e5;
        background: #f3f9ff;
        box-shadow: 0 0 0 3px rgba(18, 120, 211, 0.08);
        outline: 0;
    }

.option-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--auth-blue);
    background: #edf6ff;
    font-size: 18px;
}

.digilocker-option strong,
.digilocker-option small {
    display: block;
}

.digilocker-option strong {
    color: #34495e;
    font-size: 12px;
    font-weight: 700;
}

.digilocker-option small {
    margin-top: 4px;
    color: #8a98a7;
    font-size: 10px;
    line-height: 1.5;
}

.option-arrow {
    margin-left: auto;
    color: #91a0b0;
}

.stage-footnote {
    display: flex;
    gap: 8px;
    max-width: 610px;
    margin: 17px auto 0;
    color: #8b98a6;
    font-size: 10px;
    line-height: 1.6;
}

    .stage-footnote i {
        color: var(--auth-blue);
    }

.opening-illustration {
    margin-bottom: 20px;
}

.external-bubble {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 5px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #1683e5;
    box-shadow: 0 6px 18px rgba(22, 131, 229, 0.2);
    font-size: 16px;
}

.handoff-status {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    border-radius: 9px;
    color: #526d8c;
    background: #edf4fc;
    font-size: 11px;
    font-weight: 600;
}

    .handoff-status .spinner-border {
        color: #00a9b5;
    }

.handoff-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

    .handoff-actions .auth-primary-btn {
        width: auto;
        min-width: 210px;
        margin-top: 0;
    }

.auth-secondary-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid #dce6ef;
    border-radius: 10px;
    color: #627488;
    background: #fff;
    font: 650 12px var(--font-family);
}

    .auth-secondary-btn:hover {
        border-color: #9fc9eb;
        color: var(--auth-blue);
    }

.onboarding-form {
    margin-top: 20px;
}

.onboarding-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

    .onboarding-field-grid .field-group {
        margin-bottom: 14px;
    }

.field-span-2 {
    grid-column: span 2;
}

.onboarding-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #dce6ef;
    border-radius: 9px;
    outline: 0;
    color: #34495e;
    background: #fff;
    font: 500 12px var(--font-family);
    transition: 0.18s ease;
}

    .onboarding-input:focus {
        border-color: var(--auth-blue);
        box-shadow: 0 0 0 3px rgba(18, 120, 211, 0.08);
    }

    .onboarding-input.is-invalid {
        border-color: #e45c69;
    }

    .onboarding-input.is-readonly {
        color: #728398;
        background: #f6f9fc;
    }

.onboarding-field-grid .form-label {
    margin-bottom: 7px;
    color: #43566b;
    font-size: 11px;
    font-weight: 650;
}

    .onboarding-field-grid .form-label b {
        color: #e45c69;
    }

.onboarding-field-grid textarea {
    resize: vertical;
}

.verification-success {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid #d9f1e7;
    border-radius: 10px;
    background: #f1fbf6;
}

    .verification-success > span {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: #fff;
        background: #16a77d;
    }

    .verification-success strong,
    .verification-success small {
        display: block;
    }

    .verification-success strong {
        color: #286b57;
        font-size: 11px;
    }

    .verification-success small {
        margin-top: 3px;
        color: #7b9a8e;
        font-size: 9px;
    }

    .verification-success em {
        margin-left: auto;
        color: #168b68;
        font-size: 10px;
        font-style: normal;
        font-weight: 700;
    }

.agreement-list {
    display: grid;
    gap: 9px;
}

.agreement-item {
    overflow: hidden;
    border: 1px solid #dfe8f0;
    border-radius: 10px;
    background: #fff;
}

    .agreement-item summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 13px 15px;
        color: #42566b;
        cursor: pointer;
        list-style: none;
        font-size: 11px;
        font-weight: 700;
    }

        .agreement-item summary::-webkit-details-marker {
            display: none;
        }

        .agreement-item summary span {
            display: flex;
            align-items: center;
            gap: 9px;
        }

            .agreement-item summary span i {
                color: var(--auth-blue);
                font-size: 15px;
            }

    .agreement-item[open] summary > i {
        transform: rotate(180deg);
    }

.agreement-copy {
    padding: 0 15px 14px;
    color: #7f8d9c;
    font-size: 10px;
    line-height: 1.7;
}

    .agreement-copy p {
        margin: 5px 0;
    }

    .agreement-copy strong {
        color: #455a70;
    }

.consent-form {
    margin-top: 17px;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    color: #6e7f90;
    cursor: pointer;
    font-size: 10px;
    line-height: 1.6;
}

    .consent-check input {
        position: absolute;
        opacity: 0;
    }

    .consent-check .custom-check {
        flex: 0 0 16px;
    }

    .consent-check input:checked + .custom-check {
        border-color: var(--auth-blue);
        background: var(--auth-blue);
    }

        .consent-check input:checked + .custom-check::after {
            content: "";
            position: absolute;
            left: 5px;
            top: 1px;
            width: 4px;
            height: 8px;
            border: solid #fff;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

    .consent-check strong {
        color: #3c5873;
    }

.completion-mark {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 28px auto 20px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #00bd87, #28a9c7);
    box-shadow: 0 10px 25px rgba(0, 189, 135, 0.2);
    font-size: 30px;
}

.onboarding-stage[data-stage="success"] .auth-primary-btn {
    max-width: 300px;
    margin: 24px auto 0;
}

.onboarding-footer {
    width: min(100% - 40px, 850px);
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 0 auto;
    padding: 18px 0 22px;
    color: #9aa6b2;
    font-size: 10px;
}

    .onboarding-footer i {
        color: var(--auth-green);
        margin-right: 5px;
    }

@media (max-width: 640px) {
    .onboarding-header {
        min-height: 70px;
        padding: 14px 18px;
    }

        .onboarding-header .brand-word {
            font-size: 28px;
        }

    .onboarding-header-right {
        gap: 10px;
    }

    .secure-chip {
        display: none;
    }

    .onboarding-main {
        margin-top: 26px;
    }

    .onboarding-card {
        padding: 21px 17px;
        border-radius: 15px;
    }

    .onboarding-progress {
        margin-bottom: 18px;
    }

    .progress-step {
        gap: 5px;
    }

        .progress-step small {
            font-size: 9px;
        }

    .onboarding-progress > i {
        margin: 0 8px;
    }

    .onboarding-field-grid {
        grid-template-columns: 1fr;
    }

    .field-span-2 {
        grid-column: auto;
    }

    .handoff-actions {
        align-items: stretch;
    }

        .handoff-actions .auth-primary-btn {
            min-width: 0;
            flex: 1;
        }

    .onboarding-footer {
        font-size: 9px;
    }

        .onboarding-footer span:last-child {
            display: none;
        }
}

.aadhaar-result-card {
    max-width: 590px;
    margin: 24px auto 0;
    padding: 18px 20px;
    border: 1px solid #dce7f1;
    border-radius: 13px;
    background: #fbfdff;
}

.aadhaar-result-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eaf0f5;
}

.aadhaar-result-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #1278d3;
    background: #eaf4ff;
    font-size: 18px;
}

.aadhaar-result-brand strong,
.aadhaar-result-brand small {
    display: block;
}

.aadhaar-result-brand strong {
    color: #34495e;
    font-size: 12px;
}

.aadhaar-result-brand small {
    margin-top: 3px;
    color: #8b98a7;
    font-size: 9px;
}

.aadhaar-result-brand em {
    margin-left: auto;
    color: #15936e;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.aadhaar-result-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 2px;
    border-bottom: 1px solid #edf2f6;
    font-size: 11px;
}

    .aadhaar-result-row:last-child {
        border-bottom: 0;
    }

    .aadhaar-result-row span {
        color: #8391a0;
    }

    .aadhaar-result-row strong {
        color: #40556a;
        text-align: right;
    }
