/* ==========================================================================
   Theme Auth — ported from the real theme styles.css (.auth-layout family)
   Scoped additively; does not touch unrelated global classes.
   ========================================================================== */

:root {
    --qt-blue: #0d63d8;
    --qt-blue-dark: #0a54bd;
    --qt-blue-50: #f2f7fe;
    --qt-blue-100: #dceafa;
    --qt-teal: #18b8a5;
    --qt-navy: #071b3f;
    --qt-ink: #172d52;
    --qt-muted: #5d7090;
    --qt-line: #d9e5f3;
    --qt-shadow: 0 18px 50px rgba(16, 50, 99, .11);
    --qt-r-sm: 10px;
    --qt-r-lg: 18px;
}

.full-bleed-body {
    min-height: 100vh;
}

/*.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(460px, 1.1fr);
    background: #fff;
}*/

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }
}

.auth-layout {
    min-height: 100vh; /* only a FLOOR, can grow taller */
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(460px, 1.1fr);
}

.auth-brand-panel {
    position: sticky;
    top: 0;
    align-self: start; /* stop stretching to match the row height */
    height: 100vh; /* lock its own height instead of inheriting the grid row's */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* unchanged — original look stays exactly the same */
    overflow: hidden;
    padding: clamp(28px, 5vw, 70px);
    color: #fff;
    background: var(--qt-navy);
}

    .auth-brand-panel:before {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        right: -220px;
        top: -190px;
        background: rgba(24, 184, 165, .16);
        border-radius: 50%;
    }

    .auth-brand-panel:after {
        content: "";
        position: absolute;
        width: 330px;
        height: 330px;
        left: -150px;
        bottom: -150px;
        background: rgba(13, 99, 216, .25);
        border-radius: 50%;
    }

.auth-brand-panel > * {
    position: relative;
    z-index: 1;
}
    .auth-brand-panel .auth-brand-logo {
        align-self: flex-start;
    }

    .auth-brand-panel .auth-brand-logo {
        display: flex;
        justify-content: flex-start; /* Align horizontally to the left */
        align-items: center; /* Keep items vertically centered */
        gap: 10px;
        color: #fff;
        font-weight: 800;
        font-size: 20px;
        letter-spacing: -.6px;
    }

.auth-brand-panel .auth-brand-logo img {
    height: 60px;
}

.auth-copy h1 {
    max-width: 560px;
    margin: 0 0 18px;
    font-size: clamp(38px,5vw,64px);
    line-height: 1.02;
    letter-spacing: -2px;
}

.auth-copy p {
    max-width: 540px;
    margin: 0;
    color: #c9d8ed;
    font-size: 18px;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
    color: #d8e5f5;
    font-size: 14px;
    list-style: none;
    padding: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

    .trust-item .icon {
        color: #53d7c7;
        width: 18px;
        height: 18px;
    }

.auth-copyright {
    color: #92a6c3;
    font-size: 12px;
    margin: 0;
}

.auth-main {
    display: grid;
    place-items: center;
    padding: 28px;
    background: linear-gradient(145deg, #fff 0%, #f2f7fd 100%);
}

    .auth-main > :first-child {
        margin-top: 0;
    }

.theme-auth-card {
    width: min(570px, 100%);
    padding: 34px;
    background: #fff;
    border: 1px solid var(--qt-line);
    border-radius: var(--qt-r-lg);
    box-shadow: var(--qt-shadow) !important;
}

html {
    scrollbar-gutter: stable; /* reserves scrollbar width always, whether or not it's needed */
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        position: relative; /* not static — keeps a containing block for ::before/::after so overflow:hidden still clips them */
        top: auto;
        height: auto;
        min-height: 0;
    }
}

    .theme-auth-card.wide {
        width: min(650px, 100%);
    }

    .theme-auth-card .modal-header {
        margin-bottom: 0;
        padding: 0;
        border-bottom: none;
        display: block;
        text-align: left;
    }

    .theme-auth-card .auth-card-head {
        margin-bottom: 24px;
    }

    .theme-auth-card .auth-icon {
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        margin-bottom: 18px;
        color: var(--qt-blue);
        background: var(--qt-blue-50);
        border-radius: 12px;
    }

        .theme-auth-card .auth-icon svg {
            width: 24px;
            height: 24px;
        }

.theme-auth-card .auth-card-head h1 {
    margin: 0;
    color: var(--qt-navy);
    font-size: 30px;
    letter-spacing: -.6px;
}

    .theme-auth-card .auth-card-head p {
        margin: 7px 0 0;
        color: var(--qt-muted);
        font-size: 16px;
    }

    .theme-auth-card .modal-body {
        padding: 0;
        margin-top: 0;
    }

    .theme-auth-card .form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .theme-auth-card .field {
        display: grid;
        gap: 7px;
    }

        .theme-auth-card .field.full,
        .theme-auth-card .field-full {
            grid-column: 1 / -1;
        }

        .theme-auth-card .field > span {
            font-size: 14px;
            font-weight: 700;
            color: var(--qt-ink);
        }

        .theme-auth-card .field .required {
            color: var(--qt-blue);
        }

    .theme-auth-card .success-hero {
        text-align: center;
    }

    .theme-auth-card .success-icon {
        width: 68px;
        height: 68px;
        display: grid;
        place-items: center;
        margin: 0 auto 18px;
        color: #24a548;
        background: #f2faf2;
        border-radius: 50%;
    }

        .theme-auth-card .success-icon .icon {
            width: 34px;
            height: 34px;
        }

    .theme-auth-card .success-hero p {
        color: var(--qt-muted);
    }

    .theme-auth-card .notice {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
        color: var(--qt-muted);
        background: #f7f9fd;
        border: 1px solid var(--qt-line);
        border-radius: var(--qt-r-sm);
        font-size: 14px;
    }

        .theme-auth-card .notice .icon {
            flex: 0 0 20px;
            color: var(--qt-blue);
        }

    .theme-auth-card .auth-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px !important;
        margin-top: 24px !important;
    }

/* Real theme .button family (ported verbatim, token-mapped) */
.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--qt-r-sm);
    cursor: pointer;
    font-weight: 750;
    transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}

    .button:hover {
        text-decoration: none;
        transform: translateY(-1px);
    }

    .button svg {
        width: 18px;
        height: 18px;
    }

.button-primary {
    color: #fff;
    background: var(--qt-blue);
    box-shadow: 0 5px 14px rgba(18, 105, 213, .18);
}

    .button-primary:hover {
        background: var(--qt-blue-dark);
        box-shadow: 0 7px 18px rgba(18, 105, 213, .23);
        color: #fff;
    }

.button-secondary {
    color: var(--qt-ink);
    background: #fff;
    border-color: var(--qt-line);
}

    .button-secondary:hover {
        background: #f7f9fd;
        border-color: #b9c9de;
        color: var(--qt-ink);
    }
.button.btnCancel {
    font-weight: 750;
    color: var(--qt-ink) !important;
    background: #fff !important;
}

    .button.btnCancel:hover {
        font-weight: 750;
        color: var(--qt-ink) !important;
        background: #f7f9fd !important;
    }

.theme-auth-card .form-label.fw-semibold {
    font-size: 14px;
    font-weight: 700;
    color: var(--qt-ink);
    margin-bottom: 6px;
}

.theme-auth-card .input-container.inco {
    position: relative;
}

.theme-auth-card .theme-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--qt-muted);
    pointer-events: none;
}

.theme-auth-card .input-field.widd {
    width: 100%;
    height: 44px;
    border: 1px solid var(--qt-line);
    border-radius: var(--qt-r-sm);
/*    padding: 0 14px 0 40px;*/
    font-size: 15px;
    color: var(--qt-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .theme-auth-card .input-field.widd:focus {
        outline: none;
        border-color: var(--qt-blue);
        box-shadow: 0 0 0 3px rgba(13, 99, 216, .15);
    }

.theme-auth-card .btnn.btnnDefault {
    min-height: 44px;
    border-radius: var(--qt-r-sm);
    padding: 0 20px;
    font-weight: 750;
    font-size: 15px;
    border: 1px solid transparent;
    background: var(--qt-blue);
    color: #fff;
    box-shadow: 0 5px 14px rgba(18, 105, 213, .18);
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .theme-auth-card .btnn.btnnDefault:hover {
        background: var(--qt-blue-dark);
        transform: translateY(-1px);
    }

    .theme-auth-card .btnn.btnnDefault.btnCancel {
        background: #fff;
        color: var(--qt-ink) !important;
        border-color: var(--qt-line);
        box-shadow: none;
    }

        .theme-auth-card .btnn.btnnDefault.btnCancel:hover {
            background: #f7f9fd;
            border-color: #b9c9de;
        }

.theme-auth-card .forgot {
    color: var(--qt-blue);
    font-weight: 700;
}

    .theme-auth-card .forgot:hover {
        text-decoration: underline;
    }

.theme-auth-card .auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
    margin: 22px 0 24px 0 !important;
}

/* OTP channel cards - theme-auth scoped */
.theme-auth-card .otp-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.theme-auth-card .otp-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 14px 16px;
    border: 1px solid var(--qt-line);
    border-radius: var(--qt-r-sm);
    background: #fff;
    color: var(--qt-ink);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

    .theme-auth-card .otp-option:hover {
        border-color: #b9c9de;
        background: #f9fbff;
    }

    .theme-auth-card .otp-option:has(input:checked) {
        border-color: var(--qt-blue);
        background: var(--qt-blue-50);
        box-shadow: 0 0 0 1px var(--qt-blue);
    }

    .theme-auth-card .otp-option:has(input:disabled) {
        opacity: .55;
        cursor: not-allowed;
    }

    .theme-auth-card .otp-option input {
        flex: 0 0 auto;
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: var(--qt-blue);
    }

    .theme-auth-card .otp-option .icon {
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
        color: var(--qt-blue);
    }

    .theme-auth-card .otp-option span {
        min-width: 0;
        line-height: 1.25;
    }

    .theme-auth-card .otp-option strong {
        display: block;
        margin-bottom: 4px;
        color: var(--qt-ink);
        font-size: 14px;
        font-weight: 800;
    }

    .theme-auth-card .otp-option small,
    .theme-auth-card .otp-option .muted {
        display: block;
        color: var(--qt-muted);
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 576px) {
    .theme-auth-card .otp-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .auth-main {
        padding: 20px;
    }

    .theme-auth-card {
        padding: 24px;
        border-radius: 14px;
    }

        .theme-auth-card .form-grid {
            grid-template-columns: 1fr;
        }

        .theme-auth-card .auth-links,
        .theme-auth-card .auth-actions {
            align-items: stretch;
            flex-direction: column;
        }
}
/* Timer container */
.otp-timer-wrapper {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background: #f7f9fd;
    border-radius: 10px;
    width: 100%;
}

/* Circle wrapper */
.otp-circle {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

/* Timer text */
.otp-time-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .otp-time-text .label {
        margin: 0;
        display: block;
        color: #5d7090;
        font-weight: 700;
        font-size: 14px;
    }

    .otp-time-text #timer {
        color: #071b3f;
        font-size: 30px;
        font-weight: 800;
        line-height: 1.1;
        font-variant-numeric: tabular-nums;
        margin-left: 10px;
    }

/* Notice container */
.trouble-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: #f7f9fd;
    border: 1px solid #d9e5f3;
    border-radius: 10px;
    color: #5d7090;
    font-size: 14px;
    text-align: left;
}

    /* Heading */
    .trouble-text strong {
        color: var(--navy);
        font-size: 16px;
        font-weight: 700;
        margin: 0;
    }

    /* Body text */
    .trouble-text .otptext {
        margin: 0;
        color: var(--muted);
        line-height: 1.6;
    }

    /* Highlighted email */
    .trouble-text .highlight {
        color: var(--teal);
        font-weight: 700;
        word-break: break-word;
    }
.auth-main .modal-content.theme-auth-card.success-hero .modal-header {
    text-align: center;
    align-items: center;
    justify-content: center;
}

    .auth-main .modal-content.theme-auth-card.success-hero .modal-header h1 {
        text-align: center;
        margin: 0;
        padding: 20px 0 30px 0;
    }
.auth-main .modal-content.theme-auth-card.success-hero .modal-body .formm > p {
    color: #5d7090;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}