/* Homepage refinements: preserve the existing travel template and imagery. */
.tz-home-page, .forgot-password-reference-modal, .otp-reference-modal {
    --tz-blue: var(--tz-color-secondary);
    --tz-blue-dark: var(--tz-color-primary);
    --tz-navy: var(--tz-color-text);
    --tz-text: var(--tz-color-text-secondary);
    --tz-muted: var(--tz-color-muted);
    --tz-border: var(--tz-color-border);
    --tz-soft: var(--tz-color-icon-surface);
    font-family: var(--body-font, 'Montserrat', sans-serif);
}
.tz-home-page { width: 100%; background: #fff; color: var(--tz-navy); }
/* The shared flight stylesheet forces hidden overflow on both scroll roots. */
html:has(.tz-home-page), body:has(.tz-home-page) { overflow-x: clip !important; }
body.modal-open:has(.tz-home-page) { overflow: hidden !important; }
.tz-home-page *, .tz-home-page *::before, .tz-home-page *::after { box-sizing: border-box; }
.tz-home-page > section > .container { width: min(1440px, calc(100% - 80px)); max-width: 1440px; margin-inline: auto; padding: 0; }
.tz-home-page .tz-home-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--tz-border); background: url('../../images/sliderimage%20(1).png') center right / cover no-repeat; }
.tz-home-page .tz-home-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(20, 86, 165, .1) 1px, transparent 1px); background-size: 9px 9px; mask-image: linear-gradient(90deg, transparent, #000 35%, transparent 84%); pointer-events: none; }
.tz-home-page .tz-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: 64px; padding: 40px 0; }
.tz-home-page .tz-hero-left { max-width: 590px; min-width: 0; }
.tz-home-page .tz-hero-badge { display: inline-flex; align-items: center; min-height: 34px; margin-bottom: 22px; padding: 9px 16px; border-radius: 999px; background: var(--tz-blue-dark); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .7px; }
.tz-home-page .tz-hero-left h1 { margin: 0 0 20px; color: var(--tz-navy); font-size: clamp(34px, 3vw, 44px); font-weight: 700; line-height: 1.2; letter-spacing: -1px; text-shadow: none; }
.tz-home-page .tz-hero-left h1 span { color: var(--tz-blue); }
.tz-home-page .tz-hero-left > p { max-width: 560px; margin: 0 0 28px; color: var(--tz-text); font-size: 15px; font-weight: 400; line-height: 1.85; }
.tz-home-page .tz-hero-benefits { display: grid; gap: 22px; max-width: 500px; }
.tz-home-page .tz-benefit-item { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.tz-home-page .tz-benefit-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg, var(--tz-blue), var(--tz-blue-dark)); color: #fff; font-size: 17px; }
.tz-home-page .tz-benefit-item h3 { margin: 0 0 6px; color: var(--tz-navy); font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: -.3px; }
.tz-home-page .tz-benefit-item p { margin: 0; color: var(--tz-color-text-secondary); font-size: 12px; font-weight: 400; line-height: 1.8; }
.tz-home-page .tz-hero-right { min-width: 0; }
.tz-home-page .tz-login-card { width: 100%; padding: 32px; border: 1px solid var(--tz-color-border); border-radius: 22px; background: rgba(255, 255, 255, .98); box-shadow: 0 14px 36px rgba(20, 58, 118, .12); }
.tz-home-page .tz-login-card h2 { margin: 0 0 10px; color: var(--tz-navy); font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: -.6px; }
.tz-home-page .tz-login-subtitle { margin: 0 0 26px; color: var(--tz-muted); font-size: 13px; line-height: 1.8; }
.tz-home-page .tz-form-group { margin-bottom: 20px; }
.tz-home-page .tz-form-group label { display: block; margin-bottom: 9px; color: var(--tz-navy); font-size: 12px; line-height: 1.5; font-weight: 700; }
.tz-home-page .tz-input-wrap { position: relative; }
.tz-home-page .tz-input-wrap input { display: block; width: 100%; min-height: 50px; padding: 12px 48px 12px 14px; border: 1px solid var(--tz-color-border); border-radius: 7px; background: #fff; color: var(--tz-navy); font: inherit; font-size: 14px; line-height: 1.5; transition: border-color .2s ease, box-shadow .2s ease; }
.tz-home-page .tz-input-wrap input::placeholder { color: var(--tz-color-muted); opacity: 1; }
.tz-home-page .tz-input-wrap input:focus { outline: none; border-color: var(--tz-blue); box-shadow: 0 0 0 3px rgba(11, 99, 246, .12); }
.tz-home-page .tz-input-wrap input[aria-invalid='true'] { border-color: #b42332; }
.tz-home-page .tz-input-wrap > span { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); color: var(--tz-color-muted); font-size: 14px; pointer-events: none; }
.tz-home-page .tz-eye-btn { position: absolute; display: grid; place-items: center; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 5px; background: transparent; color: var(--tz-color-muted); font-size: 15px; cursor: pointer; }
.tz-home-page .tz-eye-btn:hover { background: var(--tz-color-icon-surface); color: var(--tz-blue-dark); }
.tz-home-page .tz-login-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 20px; }
.tz-home-page .tz-checkbox { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--tz-color-text-secondary); font-size: 12px; line-height: 1.6; cursor: pointer; }
.tz-home-page .tz-checkbox input { flex: 0 0 16px; width: 16px; height: 16px; accent-color: var(--tz-blue); }
.tz-home-page .tz-forgot-link { min-height: 36px; padding: 5px 0; border: 0; background: transparent; color: var(--tz-blue-dark); font: inherit; font-size: 12px; font-weight: 600; line-height: 1.6; cursor: pointer; }
.tz-home-page .tz-forgot-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tz-home-page .tz-login-btn, .tz-home-page .tz-otp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 13px 18px; border: 1px solid var(--tz-blue-dark); border-radius: 7px; font: inherit; font-size: 14px; line-height: 1.5; font-weight: 700; cursor: pointer; transition: background .2s ease, box-shadow .2s ease; }
.tz-home-page .tz-login-btn { background: linear-gradient(120deg, var(--tz-blue), var(--tz-blue-dark)); color: #fff; box-shadow: 0 6px 16px rgba(11, 99, 246, .16); }
.tz-home-page .tz-login-btn:hover { box-shadow: 0 8px 22px rgba(11, 99, 246, .25); }
.tz-home-page .tz-login-btn > span { font-size: 20px; line-height: 1; }
.tz-home-page .tz-otp-btn { background: #fff; color: var(--tz-blue-dark); }
.tz-home-page .tz-otp-btn:hover { background: var(--tz-color-icon-surface); }
.tz-home-page button:disabled, .otp-reference-modal button:disabled { opacity: .65; cursor: wait; }
.tz-home-page .tz-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0; color: var(--tz-muted); font-size: 12px; line-height: 1.5; }
.tz-home-page .tz-divider::before, .tz-home-page .tz-divider::after { content: ''; flex: 1; height: 1px; background: #e1e8f3; }
.tz-home-page .tz-register-text { margin-top: 22px; color: var(--tz-muted); text-align: center; font-size: 12px; line-height: 1.9; }
.tz-home-page .tz-register-text a { display: inline-block; margin-left: 5px; color: var(--tz-blue-dark); font-weight: 700; text-decoration: none; }
.tz-home-page .tz-register-text a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tz-home-field-error { display: block; margin-top: 8px; color: #b42332; font-size: 12px; line-height: 1.6; }
.tz-home-status { margin-top: 16px; padding: 12px 14px; border: 1px solid #b9dfc8; border-radius: 6px; background: #eef9f2; color: #175934; font-size: 12px; line-height: 1.8; }
.tz-home-status.is-error { border-color: #efc3c7; background: #fff3f4; color: #9c2430; }
.tz-home-status[hidden] { display: none; }

.tz-home-page .tz-section-heading { margin: 0 auto 24px; text-align: center; }
.tz-home-page .tz-section-heading h2 { display: inline-flex; align-items: center; gap: 18px; margin: 0; color: var(--tz-navy); font-size: 18px; line-height: 1.5; letter-spacing: .5px; font-weight: 700; }
.tz-home-page .tz-section-heading h2::before, .tz-home-page .tz-section-heading h2::after { content: ''; flex: 0 0 40px; width: 40px; height: 1px; background: #8bb3fa; }
.tz-home-page .tz-section-heading-large p { max-width: 700px; margin: 12px auto 0; color: var(--tz-muted); font-size: 13px; line-height: 1.9; }
.tz-home-page .tz-services-strip { padding: 36px 0 20px; }
.tz-home-page .tz-service-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.tz-home-page .tz-service-card { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 190px; padding: 22px 12px; border: 1px solid var(--tz-border); border-radius: 9px; background: #fff; text-align: center; text-decoration: none; box-shadow: 0 4px 16px rgba(24, 63, 124, .035); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.tz-home-page .tz-service-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; margin: 0 0 15px; border-radius: 50%; background: var(--tz-color-icon-surface); }
.tz-home-page .tz-service-icon img { display: block; width: 28px; height: 28px; object-fit: contain; }
.tz-home-page .tz-service-card h3 { margin: 0 0 10px; color: var(--tz-navy); font-size: 13px; font-weight: 700; line-height: 1.6; }
.tz-home-page .tz-service-card p { max-width: 145px; margin: 0; color: var(--tz-muted); font-size: 11px; line-height: 1.8; }
.tz-home-page .tz-partners-section { padding: 20px 0 30px; }
.tz-home-page .tz-partner-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.tz-home-page .tz-partner-logo { display: grid; place-items: center; min-width: 0; height: 78px; padding: 14px; border: 1px solid var(--tz-border); border-radius: 7px; background: #fff; overflow: hidden; }
.tz-home-page .tz-partner-logo img { display: block; width: 100%; height: 44px; max-width: 120px; object-fit: contain; }
/* These existing logo files have large transparent margins inside the image. */
.tz-home-page .tz-partner-logo img[src$='/airindia.png'],
.tz-home-page .tz-partner-logo img[src$='/makemytrip.png'],
.tz-home-page .tz-partner-logo img[src$='/goibibo.png'] { transform: scale(2.1); }
.tz-home-page .tz-partner-logo img[src$='/vistara.png'] { transform: scale(1.4); }
.tz-home-page .tz-security-section { padding: 12px 0 32px; }
.tz-home-page .tz-security-grid, .tz-home-page .tz-why-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--tz-border); border-radius: 9px; background: #fff; overflow: hidden; }
.tz-home-page .tz-security-card, .tz-home-page .tz-why-card { display: flex; align-items: flex-start; min-width: 0; gap: 13px; padding: 23px 18px; border-right: 1px solid #e5edf7; }
.tz-home-page .tz-security-card:last-child, .tz-home-page .tz-why-card:last-child { border-right: 0; }
.tz-home-page .tz-security-icon, .tz-home-page .tz-why-card > span { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--tz-color-icon-surface); color: var(--tz-blue); font-size: 17px; }
.tz-home-page .tz-security-card h3, .tz-home-page .tz-why-card h3 { margin: 0 0 7px; color: var(--tz-navy); font-size: 12px; font-weight: 700; line-height: 1.6; }
.tz-home-page .tz-security-card p, .tz-home-page .tz-why-card p { margin: 0; color: var(--tz-muted); font-size: 11px; line-height: 1.8; }
.tz-home-page .tz-why-section { padding: 30px 0 36px; background: var(--tz-color-section); }
.tz-home-page .tz-why-card > span { background: var(--tz-blue); color: #fff; }
.tz-home-page a:focus-visible, .tz-home-page button:focus-visible, .tz-home-page input[type='checkbox']:focus-visible { outline: 3px solid var(--tz-blue); outline-offset: 4px; border-radius: 4px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .tz-home-page .tz-service-card:hover { transform: translateY(-3px); border-color: #9ebfeb; box-shadow: 0 8px 22px rgba(24, 63, 124, .08); }
}
@media (max-width: 1199px) {
    .tz-home-page > section > .container { width: calc(100% - 48px); }
    .tz-home-page .tz-hero-grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; }
    .tz-home-page .tz-hero-left h1 { font-size: 34px; }
    .tz-home-page .tz-hero-left > p { font-size: 14px; }
    .tz-home-page .tz-benefit-item h3 { font-size: 15px; }
    .tz-home-page .tz-service-grid, .tz-home-page .tz-partner-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tz-home-page .tz-security-grid, .tz-home-page .tz-why-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .tz-home-page .tz-security-card, .tz-home-page .tz-why-card { grid-column: span 2; border-bottom: 1px solid #e5edf7; }
    .tz-home-page .tz-security-card:nth-child(3), .tz-home-page .tz-why-card:nth-child(3) { border-right: 0; }
    .tz-home-page .tz-security-card:nth-last-child(-n+2), .tz-home-page .tz-why-card:nth-last-child(-n+2) { grid-column: span 3; border-bottom: 0; }
}
@media (max-width: 900px) {
    .tz-home-page .tz-home-hero { background-image: linear-gradient(90deg, rgba(242, 248, 255, .97), rgba(242, 248, 255, .85)), url('../../images/sliderimage%20(1).png'); }
    .tz-home-page .tz-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 0; }
    .tz-home-page .tz-hero-left { max-width: 100%; }
    .tz-home-page .tz-hero-left h1 { max-width: 650px; font-size: 38px; }
    .tz-home-page .tz-hero-left > p { max-width: 630px; }
    .tz-home-page .tz-hero-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 100%; gap: 20px; }
    .tz-home-page .tz-benefit-item { flex-direction: column; gap: 12px; }
    .tz-home-page .tz-hero-right { width: 100%; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 640px) {
    .tz-home-page > section > .container { width: calc(100% - 32px); }
    .tz-home-page .tz-hero-grid { padding: 26px 0; }
    .tz-home-page .tz-hero-badge { margin-bottom: 18px; }
    .tz-home-page .tz-hero-left h1 { font-size: clamp(29px, 7.5vw, 36px); letter-spacing: -.8px; }
    .tz-home-page .tz-hero-left > p { margin-bottom: 24px; font-size: 14px; }
    .tz-home-page .tz-hero-benefits { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .tz-home-page .tz-benefit-item { flex-direction: row; gap: 12px; }
    .tz-home-page .tz-benefit-icon { flex-basis: 38px; width: 38px; height: 38px; font-size: 15px; }
    .tz-home-page .tz-benefit-item h3 { font-size: 14px; }
    .tz-home-page .tz-login-card { padding: 26px 20px; border-radius: 16px; }
    .tz-home-page .tz-login-card h2 { font-size: 24px; }
    .tz-home-page .tz-input-wrap input { font-size: 16px; }
    .tz-home-page .tz-login-subtitle { font-size: 12px; }
    .tz-home-page .tz-services-strip { padding-top: 28px; }
    .tz-home-page .tz-section-heading h2 { gap: 12px; font-size: 16px; }
    .tz-home-page .tz-section-heading h2::before, .tz-home-page .tz-section-heading h2::after { flex-basis: 22px; width: 22px; }
    .tz-home-page .tz-section-heading-large p { font-size: 12px; }
    .tz-home-page .tz-service-grid, .tz-home-page .tz-partner-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tz-home-page .tz-service-card { min-height: 190px; padding: 22px 14px; }
    .tz-home-page .tz-service-card p { font-size: 12px; }
    .tz-home-page .tz-partner-logo { padding: 12px; }
    .tz-home-page .tz-security-grid, .tz-home-page .tz-why-grid { grid-template-columns: minmax(0, 1fr); }
    .tz-home-page .tz-security-card, .tz-home-page .tz-why-card, .tz-home-page .tz-security-card:nth-last-child(-n+2), .tz-home-page .tz-why-card:nth-last-child(-n+2) { grid-column: auto; padding: 20px; border-right: 0; border-bottom: 1px solid #e5edf7; }
    .tz-home-page .tz-security-card:last-child, .tz-home-page .tz-why-card:last-child { border-bottom: 0; }
    .tz-home-page .tz-security-card h3, .tz-home-page .tz-why-card h3 { font-size: 13px; }
    .tz-home-page .tz-security-card p, .tz-home-page .tz-why-card p { font-size: 12px; }
}
@media (max-width: 359px) {
    .tz-home-page .tz-login-card { padding-inline: 16px; }
    .tz-home-page .tz-login-meta { align-items: flex-start; flex-direction: column; }
    .tz-home-page .tz-service-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .tz-home-page *, .tz-home-page *::before, .tz-home-page *::after { transition: none; }
}

/* Existing password-recovery and verification illustrations. */
    .forgot-password-reference-modal .modal-dialog {
        max-width: 660px;
    }

    .forgot-password-reference-modal .modal-content {
        border: 0;
        border-radius: 10px;
        box-shadow: 0 28px 86px rgba(8, 22, 76, 0.35);
        overflow: hidden;
    }

    .forgot-modal-close {
        align-items: center;
        background: transparent;
        border: 0;
        color: #0b143f;
        display: flex;
        font-size: 17px;
        height: 34px;
        justify-content: center;
        line-height: 1;
        opacity: 0.9;
        position: absolute;
        right: 18px;
        top: 16px;
        width: 34px;
        z-index: 3;
    }

    .forgot-modal-close:hover {
        color: var(--tz-blue);
    }

    .forgot-modal-layout {
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        min-height: 475px;
    }

    .forgot-modal-visual {
        background: linear-gradient(180deg, #f9fcff 0%, var(--tz-color-icon-surface) 100%);
        overflow: hidden;
        padding: 48px 34px 28px;
        position: relative;
    }

    .forgot-modal-visual::after {
        background-image: linear-gradient(180deg, rgba(7, 91, 255, 0.08), rgba(7, 91, 255, 0));
        bottom: -40px;
        content: "";
        height: 118px;
        left: 0;
        opacity: 0.7;
        position: absolute;
        right: 0;
    }

    .forgot-modal-logo {
        height: auto;
        margin-bottom: 28px;
        max-width: 126px;
        position: relative;
        z-index: 1;
    }

    .forgot-illustration {
        height: 210px;
        margin: 0 auto 34px;
        position: relative;
        width: 220px;
        z-index: 1;
    }

    .forgot-illu-cloud {
        background: #e9f3ff;
        border-radius: 48% 52% 42% 58%;
        height: 146px;
        left: 40px;
        position: absolute;
        top: 28px;
        width: 146px;
    }

    .forgot-illu-plane {
        color: var(--tz-color-secondary);
        font-size: 34px;
        left: 13px;
        position: absolute;
        top: 20px;
        transform: rotate(-18deg);
    }

    .forgot-illu-envelope {
        background: linear-gradient(145deg, #dcecff, #ffffff);
        border-radius: 6px;
        bottom: 12px;
        box-shadow: 0 18px 40px rgba(7, 91, 255, 0.16);
        height: 112px;
        left: 30px;
        position: absolute;
        width: 162px;
    }

    .forgot-illu-envelope::before {
        border-left: 81px solid transparent;
        border-right: 81px solid transparent;
        border-top: 58px solid #ffffff;
        bottom: 0;
        content: "";
        left: 0;
        position: absolute;
    }

    .forgot-illu-envelope::after {
        border-left: 81px solid #cfe2ff;
        border-top: 57px solid transparent;
        bottom: 0;
        content: "";
        left: 0;
        position: absolute;
    }

    .forgot-illu-lock {
        align-items: center;
        background: var(--tz-color-section);
        border-radius: 8px;
        box-shadow: 0 12px 28px rgba(8, 22, 76, 0.12);
        color: var(--tz-color-primary);
        display: flex;
        flex-direction: column;
        gap: 7px;
        height: 82px;
        justify-content: center;
        left: 39px;
        position: absolute;
        top: -28px;
        width: 84px;
        z-index: 2;
    }

    .forgot-illu-lock i {
        font-size: 30px;
    }

    .forgot-illu-lock span {
        background: #ccd9ee;
        border-radius: 999px;
        height: 5px;
        width: 46px;
    }

    .forgot-illu-lock span + span {
        width: 32px;
    }

    .forgot-illu-dash {
        border: 1px dashed #82a7e8;
        border-bottom: 0;
        border-radius: 50%;
        height: 70px;
        position: absolute;
        width: 42px;
    }

    .forgot-illu-dash.one {
        left: 0;
        top: 64px;
        transform: rotate(-18deg);
    }

    .forgot-illu-dash.two {
        bottom: 34px;
        right: 1px;
        transform: rotate(26deg);
    }

    .forgot-security-note {
        align-items: center;
        display: grid;
        gap: 14px;
        grid-template-columns: 42px 1fr;
        position: relative;
        z-index: 1;
    }

    .forgot-security-note > span {
        align-items: center;
        background: var(--tz-color-icon-surface);
        border-radius: 50%;
        color: var(--tz-color-primary);
        display: flex;
        height: 42px;
        justify-content: center;
        width: 42px;
    }

    .forgot-security-note strong {
        color: var(--tz-color-text);
        display: block;
        font-size: 11px;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .forgot-security-note p {
        color: var(--tz-color-text-secondary);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.4;
        margin: 0;
    }

    .forgot-modal-form {
        padding: 72px 50px 36px;
    }

    .forgot-modal-form h5 {
        color: var(--tz-color-text);
        font-size: 25px;
        font-weight: 600;
        line-height: 1.15;
        margin: 0 0 14px;
    }

    .forgot-modal-form > p {
        color: var(--tz-color-text-secondary);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.65;
        margin: 0 0 28px;
        max-width: 320px;
    }

    .forgot-form-group {
        margin-bottom: 16px;
    }

    .forgot-form-group label {
        color: var(--tz-color-muted);
        display: block;
        font-size: 11px;
        font-weight: 600;
        margin-bottom: 9px;
        text-transform: uppercase;
    }

    .forgot-form-group label span {
        color: #ff334d;
    }

    .forgot-input-wrap {
        align-items: center;
        border: 1px solid var(--tz-color-border);
        border-radius: 5px;
        display: grid;
        gap: 10px;
        grid-template-columns: 18px 1fr;
        height: 44px;
        padding: 0 14px;
    }

    .forgot-input-wrap i {
        color: var(--tz-color-muted);
        font-size: 13px;
    }

    .forgot-input-wrap input {
        border: 0;
        color: var(--tz-color-text);
        font-size: 12px;
        font-weight: 700;
        height: 42px;
        outline: 0;
        width: 100%;
    }

    .forgot-input-wrap input::placeholder {
        color: var(--tz-color-muted);
    }

    .forgot-check-card {
        align-items: flex-start;
        background: var(--tz-color-icon-surface);
        border: 1px solid #d9e7fb;
        border-radius: 5px;
        display: grid;
        gap: 12px;
        grid-template-columns: 32px 1fr;
        margin: 0 0 18px;
        padding: 14px;
    }

    .forgot-check-card > span {
        align-items: center;
        background: var(--tz-color-primary);
        border-radius: 50%;
        color: #ffffff;
        display: flex;
        font-size: 12px;
        height: 28px;
        justify-content: center;
        width: 28px;
    }

    .forgot-check-card strong {
        color: var(--tz-color-text);
        display: block;
        font-size: 11px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .forgot-check-card p {
        color: var(--tz-color-text-secondary);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.45;
        margin: 0;
    }

    .forgot-submit-btn,
    .forgot-back-btn {
        align-items: center;
        border-radius: 5px;
        display: inline-flex;
        font-size: 12px;
        font-weight: 600;
        gap: 9px;
        height: 42px;
        justify-content: center;
        width: 100%;
    }

    .forgot-submit-btn {
        background: var(--tz-color-primary);
        border: 1px solid var(--tz-color-primary);
        box-shadow: 0 12px 22px rgba(7, 91, 255, 0.2);
        color: #ffffff;
    }

    .forgot-submit-btn:hover {
        background: var(--tz-color-primary-hover);
        color: #ffffff;
    }

    .forgot-or {
        color: var(--tz-color-muted);
        font-size: 11px;
        font-weight: 800;
        margin: 14px 0;
        text-align: center;
    }

    .forgot-back-btn {
        background: #ffffff;
        border: 1px solid var(--tz-color-primary);
        color: var(--tz-color-primary);
    }

    .forgot-back-btn:hover {
        background: var(--tz-color-icon-surface);
    }

    .forgot-modal-footer {
        align-items: center;
        background: var(--tz-color-section);
        border-top: 1px solid #e5edf8;
        color: var(--tz-color-text-secondary);
        display: flex;
        font-size: 10px;
        font-weight: 700;
        justify-content: space-between;
        min-height: 48px;
        padding: 0 28px;
    }

    .forgot-modal-footer span,
    .forgot-modal-footer a {
        align-items: center;
        display: inline-flex;
        gap: 8px;
    }

    .forgot-modal-footer i {
        color: var(--tz-color-primary);
    }

    .forgot-modal-footer a {
        color: var(--tz-color-primary);
        font-weight: 600;
        text-decoration: none;
    }

    .otp-reference-modal .modal-dialog {
        max-width: 360px;
    }

    .otp-reference-modal .modal-content {
        border: 0;
        border-radius: 11px;
        box-shadow: 0 28px 86px rgba(8, 22, 76, 0.35);
        overflow: hidden;
    }

    .otp-reference-modal .modal-body {
        padding: 26px 32px 30px;
        position: relative;
        text-align: center;
    }

    .otp-modal-close {
        align-items: center;
        background: #ffffff;
        border: 1px solid var(--tz-color-border);
        border-radius: 50%;
        color: var(--tz-color-muted);
        display: flex;
        font-size: 13px;
        height: 30px;
        justify-content: center;
        position: absolute;
        right: 18px;
        top: 16px;
        width: 30px;
        z-index: 2;
    }

    .otp-modal-close:hover {
        color: var(--tz-color-primary);
    }

    .otp-illustration {
        height: 88px;
        margin: 0 auto 18px;
        position: relative;
        width: 110px;
    }

    .otp-phone {
        background: var(--tz-color-secondary);
        border-radius: 9px;
        height: 76px;
        left: 29px;
        position: absolute;
        top: 0;
        width: 52px;
    }

    .otp-phone::before {
        background: #d8e8ff;
        border-radius: 999px;
        content: "";
        height: 5px;
        left: 18px;
        position: absolute;
        top: 6px;
        width: 16px;
    }

    .otp-message {
        align-items: center;
        background: #ffffff;
        border: 1px solid #bcd2ff;
        border-radius: 7px;
        box-shadow: 0 10px 22px rgba(8, 22, 76, 0.12);
        display: flex;
        gap: 7px;
        height: 34px;
        justify-content: center;
        left: -17px;
        position: absolute;
        top: 18px;
        width: 86px;
    }

    .otp-message span {
        color: var(--tz-color-primary);
        font-size: 18px;
        font-weight: 600;
        line-height: 1;
    }

    .otp-shield {
        align-items: center;
        background: var(--tz-color-primary);
        border: 4px solid var(--tz-color-icon-surface);
        border-radius: 50%;
        bottom: -10px;
        color: #ffffff;
        display: flex;
        font-size: 14px;
        height: 34px;
        justify-content: center;
        position: absolute;
        right: -10px;
        width: 34px;
    }

    .otp-reference-modal h5 {
        color: var(--tz-color-text);
        font-size: 18px;
        font-weight: 600;
        line-height: 1.2;
        margin: 0 0 14px;
    }

    .otp-reference-modal p {
        color: var(--tz-color-text-secondary);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
        margin: 0;
    }

    .otp-reference-modal p strong {
        color: var(--tz-color-text);
        font-weight: 600;
    }

    .otp-reference-modal p button {
        background: transparent;
        border: 0;
        color: var(--tz-color-primary);
        font-size: 12px;
        font-weight: 600;
        padding: 0 0 0 4px;
    }

    .otp-digit-row {
        display: grid;
        gap: 9px;
        grid-template-columns: repeat(6, 1fr);
        margin: 22px 0 15px;
    }

    .otp-digit-input {
        border: 1px solid var(--tz-color-border);
        border-radius: 6px;
        color: var(--tz-color-text);
        font-size: 20px;
        font-weight: 600;
        height: 42px;
        outline: 0;
        text-align: center;
        width: 100%;
    }

    .otp-digit-input:focus {
        border-color: var(--tz-color-primary);
        box-shadow: 0 0 0 3px rgba(7, 91, 255, 0.1);
    }

    .otp-expire-text {
        color: var(--tz-color-muted);
        font-size: 11px;
        font-weight: 800;
        margin-bottom: 17px;
    }

    .otp-expire-text span {
        color: var(--tz-color-primary);
    }

    .otp-verify-btn {
        align-items: center;
        background: var(--tz-color-primary);
        border: 1px solid var(--tz-color-primary);
        border-radius: 5px;
        box-shadow: 0 12px 22px rgba(7, 91, 255, 0.2);
        color: #ffffff;
        display: inline-flex;
        font-size: 12px;
        font-weight: 600;
        height: 42px;
        justify-content: center;
        width: 100%;
    }

    .otp-verify-btn:hover {
        background: var(--tz-color-primary-hover);
        color: #ffffff;
    }

    .otp-resend-row {
        color: var(--tz-color-text-secondary);
        font-size: 11px;
        font-weight: 800;
        margin: 17px 0 22px;
    }

    .otp-resend-btn {
        background: transparent;
        border: 0;
        color: var(--tz-color-primary);
        font-size: 11px;
        font-weight: 600;
        padding: 0 0 0 4px;
    }

    .otp-safe-note {
        align-items: center;
        background: #f3f6fb;
        border-radius: 6px;
        display: grid;
        gap: 12px;
        grid-template-columns: 34px 1fr;
        margin: 0 auto;
        max-width: 270px;
        padding: 14px;
        text-align: left;
    }

    .otp-safe-note span {
        align-items: center;
        background: var(--tz-color-icon-surface);
        border-radius: 50%;
        color: var(--tz-color-primary);
        display: flex;
        height: 30px;
        justify-content: center;
        width: 30px;
    }

    .otp-safe-note p {
        color: var(--tz-color-muted);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.45;
        margin: 0;
    }

/* Keep both existing dialogs usable at phone widths and with keyboard focus. */
.forgot-password-reference-modal .modal-dialog { max-width: 760px; }
.forgot-password-reference-modal .forgot-modal-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.forgot-password-reference-modal .forgot-modal-form { min-width: 0; padding: 60px 30px 30px; }
.forgot-password-reference-modal .forgot-modal-form h5 { font-size: 25px; font-weight: 700; line-height: 1.4; }
.forgot-password-reference-modal .forgot-modal-form > p { color: var(--tz-color-muted); font-size: 13px; font-weight: 400; line-height: 1.8; }
.forgot-password-reference-modal .forgot-input-wrap input { height: 48px; font-size: 14px; font-weight: 400; }
.forgot-password-reference-modal .forgot-form-group label { font-size: 12px; font-weight: 700; line-height: 1.5; }
.forgot-password-reference-modal .forgot-security-note strong, .forgot-password-reference-modal .forgot-check-card strong { font-weight: 700; line-height: 1.6; }
.forgot-password-reference-modal .forgot-security-note p, .forgot-password-reference-modal .forgot-check-card p { font-size: 11px; font-weight: 400; line-height: 1.8; }
.forgot-password-reference-modal .forgot-modal-close, .otp-reference-modal .otp-modal-close { width: 40px; height: 40px; top: 12px; right: 12px; }
.forgot-password-reference-modal .forgot-submit-btn, .forgot-password-reference-modal .forgot-back-btn, .otp-reference-modal .otp-verify-btn { min-height: 48px; height: auto; padding: 12px; font-weight: 700; font-size: 13px; line-height: 1.5; }
.forgot-password-reference-modal .forgot-modal-footer { flex-wrap: wrap; gap: 12px; padding: 18px 24px; line-height: 1.8; }
.otp-reference-modal .modal-dialog { max-width: 400px; }
.otp-reference-modal .modal-body { padding: 32px 26px; }
.otp-reference-modal h5 { font-size: 21px; font-weight: 700; line-height: 1.4; }
.otp-reference-modal p { font-size: 12px; font-weight: 400; line-height: 1.8; }
.otp-reference-modal .otp-mobile-text { overflow-wrap: anywhere; }
.otp-reference-modal .otp-digit-row { gap: 8px; }
.otp-reference-modal .otp-digit-input { min-width: 0; height: 48px; font-weight: 700; }
.otp-reference-modal .otp-expire-text { font-size: 11px; font-weight: 400; line-height: 1.8; }
.otp-reference-modal .otp-resend-row { font-size: 12px; font-weight: 400; line-height: 1.8; }
.otp-reference-modal .otp-resend-btn { min-height: 40px; font-size: 12px; font-weight: 700; }
.otp-reference-modal .otp-safe-note p { font-size: 11px; font-weight: 400; line-height: 1.8; }
.forgot-password-reference-modal input:focus-visible, .forgot-password-reference-modal button:focus-visible, .forgot-password-reference-modal a:focus-visible,
.otp-reference-modal input:focus-visible, .otp-reference-modal button:focus-visible { outline: 3px solid var(--tz-color-secondary); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 640px) {
    .forgot-password-reference-modal .modal-dialog, .otp-reference-modal .modal-dialog { margin: 16px; }
    .forgot-password-reference-modal .forgot-modal-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .forgot-password-reference-modal .forgot-modal-visual { display: none; }
    .forgot-password-reference-modal .forgot-modal-form { padding: 60px 24px 24px; }
    .forgot-password-reference-modal .forgot-input-wrap input { font-size: 16px; }
    .otp-reference-modal .modal-body { padding: 28px 20px; }
    .otp-reference-modal .otp-digit-row { gap: 6px; }
    .otp-reference-modal .otp-digit-input { height: 44px; }
}

