/* ============================================================
   PROBAHOK OPERATOR AUTH
   OPERATOR WORKSPACE ACCESS
   ============================================================ */


/* ============================================================
   ROOT
   ============================================================ */

:root {

    --brand: #ff7417;
    --brand-dark: #e96209;
    --brand-deep: #ce5000;

    --brand-soft: #fff5ed;
    --brand-soft-2: #fffaf6;

    --text: #191919;
    --text-soft: #707070;
    --text-faint: #9d9d9d;

    --surface: #ffffff;
    --surface-soft: #fafafa;

    --border: #e9e9e9;
    --border-strong: #dedede;

    --danger: #d63d3d;
    --danger-soft: #fff2f2;

    --success: #259847;
    --success-soft: #edf9f0;

    --container-width: 1180px;

}


/* ============================================================
   RESET
   ============================================================ */

* {
    box-sizing: border-box;
}

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

html {
    background: #f7f7f6;
}

body {

    min-height: 100dvh;

    font-family:
        "DM Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(255, 116, 23, .08),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(255, 116, 23, .06),
            transparent 30%
        ),
        #f7f7f6;

    overflow-x: hidden;

}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}


/* ============================================================
   PAGE
   ============================================================ */

.operator-auth-page {

    position: relative;

    width: 100%;

    min-height: 100dvh;
    height: 100dvh;

    display: grid;

    grid-template-rows:
        64px
        minmax(0, 1fr)
        38px;

    overflow: hidden;

}


/* ============================================================
   BACKGROUND
   ============================================================ */

.auth-ambient {

    position: fixed;

    inset: 0;

    z-index: 0;

    overflow: hidden;

    pointer-events: none;

}

.ambient-grid {

    position: absolute;

    inset: 0;

    opacity: .38;

    background-image:
        linear-gradient(
            rgba(20, 20, 20, .025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(20, 20, 20, .025) 1px,
            transparent 1px
        );

    background-size:
        34px 34px;

}

.ambient-ring {

    position: absolute;

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

    border-radius: 50%;

}

.ambient-ring::before,
.ambient-ring::after {

    content: "";

    position: absolute;

    inset: 14%;

    border:
        1px solid
        rgba(255, 116, 23, .08);

    border-radius: inherit;

}

.ambient-ring::after {

    inset: 29%;

    border-color:
        rgba(255, 116, 23, .06);

}

.ambient-ring-one {

    width: 560px;
    height: 560px;

    top: -330px;
    right: -160px;

}

.ambient-ring-two {

    width: 620px;
    height: 620px;

    bottom: -420px;
    left: -260px;

}


/* ============================================================
   HEADER
   ============================================================ */

.auth-topbar {

    position: relative;

    z-index: 20;

    height: 64px;

    border-bottom:
        1px solid
        rgba(0, 0, 0, .055);

    background:
        rgba(248, 248, 247, .74);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

}


/* ============================================================
   HEADER CONTAINER
   SAME CONTAINER PRINCIPLE AS MAIN WEBSITE
   ============================================================ */

.auth-header-container {

    width:
        min(
            var(--container-width),
            calc(100% - 40px)
        );

    height: 100%;

    margin:
        0 auto;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

}


/* ============================================================
   HEADER BRAND
   ============================================================ */

.topbar-brand {

    justify-self: start;

    display: inline-flex;

    align-items: center;

    width: fit-content;

    text-decoration: none;

}

.topbar-brand img {

    display: block;

    width: 142px;

    max-width: 100%;

    max-height: 39px;

    object-fit: contain;

    object-position: left center;

}


/* ============================================================
   HEADER CENTER
   ============================================================ */

.topbar-center {
    justify-self: center;
}

.topbar-label {

    display: inline-flex;

    align-items: center;

    padding:
        7px 13px;

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

    border-radius:
        999px;

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

    color:
        var(--text-soft);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .085em;

    text-transform: uppercase;

}


/* ============================================================
   HEADER SECURITY
   ============================================================ */

.topbar-security {

    justify-self: end;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color:
        var(--text-soft);

    font-size: 11px;

    font-weight: 600;

}

.security-dot {

    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #31ad55;

    box-shadow:
        0 0 0 4px
        rgba(49, 173, 85, .11);

}


/* ============================================================
   BODY
   ============================================================ */

.auth-body {

    position: relative;

    z-index: 5;

    min-height: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        18px 20px;

}


/* ============================================================
   AUTH WORKSPACE
   ============================================================ */

.auth-workspace {

    width:
        min(940px, 100%);

    display: grid;

    grid-template-columns:
        290px
        minmax(0, 1fr);

    align-items: stretch;

    border-radius: 27px;

    box-shadow:
        0 24px 65px
        rgba(40, 30, 20, .10);

}


/* ============================================================
   WORKSPACE PANEL
   ============================================================ */

.workspace-panel {

    position: relative;

    min-height: 430px;

    display: flex;

    flex-direction: column;

    padding:
        25px 25px 21px;

    color: #ffffff;

    border-radius:
        27px 0 0 27px;

    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(255, 255, 255, .17),
            transparent 32%
        ),
        linear-gradient(
            155deg,
            #ff812c 0%,
            #f56b11 54%,
            #e15a05 100%
        );

    overflow: hidden;

}


/* ============================================================
   WORKSPACE DECORATION
   ============================================================ */

.workspace-panel::before {

    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    right: -225px;
    bottom: -215px;

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

    border-radius: 50%;

    box-shadow:
        0 0 0 42px rgba(255, 255, 255, .025),
        0 0 0 84px rgba(255, 255, 255, .018);

    pointer-events: none;

}

.workspace-panel::after {

    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    left: -76px;
    top: -70px;

    border-radius: 50%;

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

    pointer-events: none;

}


/* ============================================================
   WORKSPACE VISUAL
   ============================================================ */

.workspace-visual {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    height: 95px;

    margin-bottom: 10px;

}

.workspace-image-shell {

    position: relative;

    width: 100px;
    height: 100px;

    display: grid;

    place-items: center;

}


/* SOFT HALO BEHIND PNG */

.workspace-image-shell::before {

    content: "";

    position: absolute;

    width: 90px;
    height: 90px;

    border-radius: 50%;

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

    box-shadow:
        0 0 0 18px
        rgba(255, 255, 255, .025);

}

.workspace-image {

    position: relative;

    z-index: 2;

    display: block;

    width: 88px;
    height: 88px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 9px 16px
            rgba(120, 45, 0, .14)
        );

}


/* ============================================================
   WORKSPACE CONTENT
   ============================================================ */

.workspace-panel-content {

    position: relative;

    z-index: 2;

}

.workspace-kicker {

    display: block;

    margin-bottom: 4px;

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

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .11em;

    text-transform: uppercase;

}

.workspace-panel-content h2 {

    margin: 0;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 23px;

    font-weight: 700;

    line-height: 1.03;

    letter-spacing: -.04em;

}

.workspace-panel-content h2 span {

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

}

.workspace-panel-description {

    margin:
        11px 0 15px;

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

    font-size: 10px;

    line-height: 1.55;

}


/* ============================================================
   WORKSPACE CAPABILITIES
   ============================================================ */

.workspace-capabilities {

    display: grid;

    gap: 7px;

}

.workspace-capability {

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        8px 9px;

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

    border-radius: 11px;

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

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;

}

.workspace-capability:hover {

    transform:
        translateX(2px);

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

    border-color:
        rgba(255, 255, 255, .17);

}

.capability-icon {

    width: 29px;
    height: 29px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 9px;

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

}

.capability-icon svg {

    width: 16px;
    height: 16px;

}

.workspace-capability > div:last-child {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 1px;

}

.workspace-capability strong {

    color: #ffffff;

    font-size: 9px;

    font-weight: 700;

}

.workspace-capability span {

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

    font-size: 7.5px;

    line-height: 1.35;

}


/* ============================================================
   WORKSPACE BOTTOM
   ============================================================ */

.workspace-panel-bottom {

    position: relative;

    z-index: 2;

    margin-top: auto;

    display: flex;

    align-items: center;

    gap: 7px;

    padding-top: 12px;

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

    font-size: 8px;

    font-weight: 600;

    letter-spacing: .035em;

}

.workspace-status-dot {

    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(255, 255, 255, .10);

}


/* ============================================================
   AUTH CARD
   ============================================================ */

.auth-card {

    position: relative;

    min-width: 0;

    min-height: 430px;

    display: flex;

    align-items: center;

    padding:
        36px 47px;

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

    border-left: 0;

    border-radius:
        0 27px 27px 0;

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

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

}


/* ============================================================
   AUTH STEPS
   ============================================================ */

.auth-step {

    display: none;

    width: 100%;

    animation:
        authStepEnter .28s ease;

}

.auth-step.active {
    display: block;
}

@keyframes authStepEnter {

    from {

        opacity: 0;

        transform:
            translateY(6px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* ============================================================
   HEADINGS
   ============================================================ */

.auth-heading-row {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 24px;

}

.auth-eyebrow {

    display: block;

    margin-bottom: 7px;

    color: var(--brand);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .11em;

    text-transform: uppercase;

}

.auth-heading-row h1,
.otp-title,
.success-step h1 {

    margin: 0;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(28px, 3vw, 35px);

    font-weight: 700;

    line-height: 1.07;

    letter-spacing: -.043em;

}

.auth-heading-row h1 span {

    display: inline;

    color: #777777;

}

.auth-description {

    max-width: 550px;

    margin:
        13px 0 23px;

    color:
        var(--text-soft);

    font-size: 12px;

    line-height: 1.58;

}

.auth-description strong {

    color: var(--text);

}


/* ============================================================
   SECURE BADGE
   ============================================================ */

.secure-badge {

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border:
        1px solid
        #eeeeee;

    border-radius: 15px;

    background: #fff8f2;

    color: var(--brand);

}

.secure-badge svg {

    width: 21px;
    height: 21px;

}


/* ============================================================
   FIELD
   ============================================================ */

.field-group {
    position: relative;
}

.field-label-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 8px;

}

.field-label-row label {

    color: var(--text);

    font-size: 12px;

    font-weight: 700;

}

.field-label-row > span {

    color: var(--text-faint);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: .04em;

    text-transform: uppercase;

}


/* ============================================================
   PHONE FIELD

   IMPORTANT:
   Focus belongs to THIS rounded container.
   The inner input does not draw its own square outline.
   ============================================================ */

.phone-field {

    position: relative;

    height: 57px;

    display: flex;

    align-items: stretch;

    border:
        1px solid
        var(--border-strong);

    border-radius: 15px;

    background: #ffffff;

    overflow: hidden;

    box-shadow:
        0 1px 0
        rgba(0, 0, 0, .015);

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

}

.phone-field:hover {

    border-color: #d1d1d1;

}

.phone-field:focus-within {

    border-color:
        rgba(255, 116, 23, .78);

    box-shadow:
        0 0 0 3px
        rgba(255, 116, 23, .09),
        0 7px 18px
        rgba(255, 116, 23, .05);

}


/* ============================================================
   COUNTRY BUTTON
   ============================================================ */

.country-trigger {

    width: 122px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    gap: 7px;

    padding:
        0 13px;

    border: 0;
    outline: 0;

    border-right:
        1px solid
        #ededed;

    border-radius: 0;

    background:
        #fafafa;

    color: var(--text);

}

.country-trigger:hover {

    background: #f6f6f6;

}

.country-trigger:focus,
.country-trigger:focus-visible {

    outline: none;

    box-shadow: none;

}

.country-flag {

    font-size: 20px;

    line-height: 1;

}

.country-code {

    font-size: 13px;

    font-weight: 700;

}

.country-trigger svg {

    width: 13px;

    margin-left: auto;

    color: #888888;

    transition:
        transform .2s ease;

}

.country-trigger[aria-expanded="true"] svg {

    transform:
        rotate(180deg);

}


/* ============================================================
   PHONE INPUT
   ============================================================ */

.phone-field input {

    width: 100%;

    min-width: 0;

    padding:
        0 17px;

    border: 0 !important;

    outline: 0 !important;

    border-radius: 0;

    background: transparent;

    box-shadow: none !important;

    color: var(--text);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 16px;

    font-weight: 600;

    letter-spacing: .025em;

    appearance: none;
    -webkit-appearance: none;

}

.phone-field input:focus,
.phone-field input:focus-visible {

    outline: none !important;

    border: 0 !important;

    box-shadow: none !important;

}

.phone-field input::placeholder {

    color: #b5b5b5;

    font-weight: 500;

}


/* ============================================================
   HINT
   ============================================================ */

.field-hint {

    margin-top: 7px;

    color: var(--text-faint);

    font-size: 10px;

    line-height: 1.45;

}


/* ============================================================
   COUNTRY MENU
   ============================================================ */

.country-menu {

    position: absolute;

    z-index: 100;

    top:
        calc(100% - 17px);

    left: 0;

    width: 100%;

    display: none;

    padding: 8px;

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

    border-radius: 15px;

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

    box-shadow:
        0 18px 45px
        rgba(25, 20, 15, .13);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

}

.country-menu.open {

    display: block;

    animation:
        countryOpen .18s ease;

}

@keyframes countryOpen {

    from {

        opacity: 0;

        transform:
            translateY(-4px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}

.country-menu-header {

    padding:
        6px 9px 9px;

    color: var(--text-faint);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

}

.country-list {

    display: grid;

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

    gap: 3px;

    max-height: 250px;

    overflow-y: auto;

    scrollbar-width: thin;

}


/* ============================================================
   COUNTRY OPTION
   ============================================================ */

.country-option {

    width: 100%;

    display: grid;

    grid-template-columns:
        28px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 5px;

    padding:
        8px 9px;

    border: 0;

    border-radius: 10px;

    background: transparent;

    color: var(--text);

    text-align: left;

}

.country-option:hover {

    background: #f7f7f7;

}

.country-option.active {

    background:
        var(--brand-soft);

}

.country-option-flag {

    font-size: 18px;

}

.country-option-name {

    min-width: 0;

    overflow: hidden;

    color: var(--text);

    font-size: 11px;

    font-weight: 600;

    white-space: nowrap;

    text-overflow: ellipsis;

}

.country-option-code {

    color: var(--text-soft);

    font-size: 10px;

    font-weight: 600;

}


/* ============================================================
   ERROR
   ============================================================ */

.form-error {

    display: none;

    margin-top: 10px;

    padding:
        9px 11px;

    border:
        1px solid
        rgba(214, 61, 61, .10);

    border-radius: 9px;

    background:
        var(--danger-soft);

    color:
        var(--danger);

    font-size: 10px;

    line-height: 1.45;

}

.form-error.show {

    display: block;

}


/* ============================================================
   FORM ACTIONS
   ============================================================ */

.form-action-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 20px;

}

.auth-mode {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--text-faint);

    font-size: 9px;

    font-weight: 600;

}

.mode-dot {

    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--brand);

    box-shadow:
        0 0 0 4px
        rgba(255, 116, 23, .09);

}


/* ============================================================
   PRIMARY BUTTON
   ============================================================ */

.primary-button {

    min-width: 145px;

    height: 48px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding:
        0 19px;

    border: 0;

    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ff7e27,
            #f06408
        );

    box-shadow:
        0 10px 22px
        rgba(255, 116, 23, .22);

    font-size: 12px;

    font-weight: 700;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        opacity .18s ease;

}

.primary-button:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 13px 27px
        rgba(255, 116, 23, .28);

}

.primary-button:active {

    transform:
        translateY(0);

}

.primary-button:disabled {

    cursor: not-allowed;

    opacity: .7;

    transform: none;

}

.primary-button:focus-visible {

    outline:
        2px solid
        rgba(255, 116, 23, .55);

    outline-offset: 3px;

}

.button-arrow {

    width: 16px;
    height: 16px;

}

.button-loader {

    display: none;

    width: 16px;
    height: 16px;

    border:
        2px solid
        rgba(255, 255, 255, .4);

    border-top-color:
        #ffffff;

    border-radius: 50%;

    animation:
        buttonSpin .75s linear infinite;

}

.primary-button.loading .button-loader {

    display: block;

}

.primary-button.loading .button-arrow {

    display: none;

}

@keyframes buttonSpin {

    to {
        transform: rotate(360deg);
    }

}


/* ============================================================
   CARD FOOTER
   ============================================================ */

.auth-card-footer {

    margin-top: 21px;

    padding-top: 13px;

    border-top:
        1px solid
        #f0f0f0;

    color:
        var(--text-faint);

    font-size: 9px;

    line-height: 1.5;

}

.auth-card-footer a {

    color: var(--text-soft);

    font-weight: 700;

    text-decoration: none;

}

.auth-card-footer a:hover {

    color: var(--brand);

    text-decoration: underline;

}


/* ============================================================
   OTP TOP ROW
   ============================================================ */

.otp-top-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;

}

.back-button {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--text-soft);

    font-size: 10px;

    font-weight: 700;

}

.back-button:hover {

    color: var(--brand);

}

.back-button svg {

    width: 15px;
    height: 15px;

}


/* ============================================================
   VERIFICATION STATUS
   ============================================================ */

.verification-status {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #939393;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;

}

.verification-status span {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #31ad55;

    box-shadow:
        0 0 0 3px
        rgba(49, 173, 85, .10);

}


/* ============================================================
   OTP HEADING
   ============================================================ */

.otp-heading-row {

    display: flex;

    align-items: center;

    gap: 15px;

}

.otp-symbol {

    width: 51px;
    height: 51px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 15px;

    background:
        var(--brand-soft);

    color:
        var(--brand);

}

.otp-symbol svg {

    width: 25px;
    height: 25px;

}

.otp-title {

    font-size:
        clamp(26px, 3vw, 34px);

}

.otp-description {

    margin-bottom: 20px;

}


/* ============================================================
   OTP INPUTS
   ============================================================ */

.otp-inputs {

    display: grid;

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

    gap: 9px;

}

.otp-input {

    width: 100%;

    min-width: 0;

    height: 55px;

    padding: 0;

    border:
        1px solid
        var(--border-strong);

    border-radius: 12px;

    outline: 0;

    background: #ffffff;

    color: var(--text);

    text-align: center;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 21px;

    font-weight: 700;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        transform .18s ease;

}

.otp-input:hover {

    border-color: #cccccc;

}

.otp-input:focus,
.otp-input:focus-visible {

    outline: none;

    border-color:
        rgba(255, 116, 23, .78);

    box-shadow:
        0 0 0 3px
        rgba(255, 116, 23, .09);

    transform:
        translateY(-1px);

}

.otp-input.filled {

    border-color:
        rgba(255, 116, 23, .42);

    background:
        var(--brand-soft-2);

}


/* ============================================================
   OTP ACTIONS
   ============================================================ */

.otp-error {

    margin-bottom: 0;

}

.otp-action-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 19px;

}

.resend-row {

    display: flex;

    align-items: center;

    gap: 5px;

    color: var(--text-faint);

    font-size: 9px;

}

.resend-button {

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--brand);

    font-size: 9px;

    font-weight: 800;

}

.resend-button:hover:not(:disabled) {

    text-decoration: underline;

}

.resend-button:disabled {

    color: #aaaaaa;

    cursor: not-allowed;

}


/* ============================================================
   SUCCESS
   ============================================================ */

.success-step {

    padding:
        10px 0;

}

.success-layout {

    display: flex;

    align-items: center;

    gap: 20px;

}

.success-icon {

    width: 67px;
    height: 67px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 20px;

    background:
        var(--success-soft);

    color:
        var(--success);

}

.success-icon svg {

    width: 31px;
    height: 31px;

}

.success-step p {

    margin:
        8px 0 0;

    color:
        var(--text-soft);

    font-size: 11px;

    line-height: 1.5;

}


/* ============================================================
   REDIRECT LOADER
   ============================================================ */

.redirect-loader {

    width: 100%;

    height: 4px;

    margin-top: 27px;

    overflow: hidden;

    border-radius: 999px;

    background: #eeeeee;

}

.redirect-loader span {

    display: block;

    width: 32%;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--brand),
            #ff9a56
        );

    animation:
        redirectMove 1.05s
        ease-in-out infinite;

}

@keyframes redirectMove {

    from {

        transform:
            translateX(-110%);

    }

    to {

        transform:
            translateX(320%);

    }

}


/* ============================================================
   FOOTER
   ============================================================ */

.auth-statusbar {

    position: relative;

    z-index: 20;

    height: 38px;

    border-top:
        1px solid
        rgba(0, 0, 0, .045);

    color: #9b9b9b;

    background:
        rgba(248, 248, 247, .72);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

}

.auth-footer-container {

    width:
        min(
            var(--container-width),
            calc(100% - 40px)
        );

    height: 100%;

    margin:
        0 auto;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .07em;

    text-transform: uppercase;

}

.statusbar-left,
.statusbar-center,
.statusbar-right {

    display: flex;

    align-items: center;

    gap: 7px;

}

.statusbar-center {

    justify-self: center;

    color: #aaaaaa;

}

.statusbar-center span {

    color: var(--brand);

}

.statusbar-right {

    justify-self: end;

}

.status-indicator {

    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--brand);

    box-shadow:
        0 0 0 3px
        rgba(255, 116, 23, .09);

}


/* ============================================================
   LAPTOP HEIGHT
   ============================================================ */

@media (max-height: 760px) and (min-width: 761px) {

    .operator-auth-page {

        grid-template-rows:
            56px
            minmax(0, 1fr)
            32px;

    }

    .auth-topbar {

        height: 56px;

    }

    .topbar-brand img {

        width: 128px;

        max-height: 34px;

    }

    .workspace-panel,
    .auth-card {

        min-height: 394px;

    }

    .workspace-panel {

        padding:
            20px 23px 18px;

    }

    .workspace-visual {

        height: 72px;

        margin-bottom: 6px;

    }

    .workspace-image {

        width: 72px;
        height: 72px;

    }

    .workspace-image-shell {

        width: 82px;
        height: 82px;

    }

    .workspace-image-shell::before {

        width: 73px;
        height: 73px;

    }

    .workspace-panel-description {

        margin:
            8px 0 12px;

    }

    .workspace-capability {

        padding:
            7px 8px;

    }

    .auth-card {

        padding:
            29px 40px;

    }

    .auth-heading-row h1,
    .otp-title,
    .success-step h1 {

        font-size: 30px;

    }

    .auth-description {

        margin:
            10px 0 18px;

        font-size: 11px;

    }

    .phone-field {

        height: 52px;

    }

    .form-action-row {

        margin-top: 16px;

    }

    .auth-card-footer {

        margin-top: 15px;

        padding-top: 10px;

    }

    .otp-input {

        height: 50px;

    }

    .auth-statusbar {

        height: 32px;

    }

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 760px) {

    .operator-auth-page {

        height: auto;

        min-height: 100dvh;

        display: block;

        overflow: visible;

    }

    .auth-topbar {

        height: 62px;

    }

    .auth-header-container {

        width:
            calc(100% - 32px);

        grid-template-columns:
            1fr
            auto;

    }

    .topbar-brand img {

        width: 126px;

    }

    .topbar-center {

        display: none;

    }

    .topbar-security {

        font-size: 9px;

    }

    .auth-body {

        display: block;

        padding:
            24px 14px 70px;

    }

    .auth-workspace {

        width:
            min(560px, 100%);

        display: flex;

        flex-direction: column;

        margin:
            0 auto;

        border-radius: 23px;

    }

    .workspace-panel {

        min-height: auto;

        display: grid;

        grid-template-columns:
            90px
            minmax(0, 1fr);

        column-gap: 16px;

        padding:
            18px 20px;

        border-radius:
            23px 23px 0 0;

    }

    .workspace-visual {

        grid-row:
            1 / 3;

        height: auto;

        margin: 0;

    }

    .workspace-image {

        width: 72px;
        height: 72px;

    }

    .workspace-image-shell {

        width: 80px;
        height: 80px;

    }

    .workspace-panel-content {

        align-self: center;

    }

    .workspace-panel-content h2 {

        font-size: 19px;

    }

    .workspace-panel-description {

        margin:
            6px 0 0;

    }

    .workspace-capabilities {

        display: none;

    }

    .workspace-panel-bottom {

        grid-column:
            2;

        margin-top: 8px;

        padding-top: 0;

    }

    .auth-card {

        min-height: 390px;

        padding:
            32px 34px;

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

        border-top: 0;

        border-radius:
            0 0 23px 23px;

    }

    .country-list {

        grid-template-columns: 1fr;

    }

    .auth-statusbar {

        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        height: 36px;

        background:
            rgba(248, 248, 247, .95);

    }

    .auth-footer-container {

        width:
            calc(100% - 30px);

        grid-template-columns:
            1fr
            auto;

    }

    .statusbar-center {

        display: none;

    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 520px) {

    .auth-topbar {

        height: 58px;

    }

    .auth-header-container {

        width:
            calc(100% - 28px);

    }

    .topbar-brand img {

        width: 116px;

    }

    .topbar-security {

        gap: 5px;

        font-size: 8px;

    }

    .auth-body {

        padding:
            14px 10px 56px;

    }

    .auth-workspace {

        border-radius: 20px;

    }

    .workspace-panel {

        grid-template-columns:
            66px
            minmax(0, 1fr);

        column-gap: 12px;

        padding:
            13px 15px;

        border-radius:
            20px 20px 0 0;

    }

    .workspace-image-shell {

        width: 60px;
        height: 60px;

    }

    .workspace-image-shell::before {

        width: 56px;
        height: 56px;

    }

    .workspace-image {

        width: 58px;
        height: 58px;

    }

    .workspace-kicker {

        font-size: 7px;

    }

    .workspace-panel-content h2 {

        font-size: 17px;

    }

    .workspace-panel-description {

        display: none;

    }

    .workspace-panel-bottom {

        margin-top: 4px;

        font-size: 7px;

    }

    .auth-card {

        min-height: 390px;

        padding:
            28px 21px 25px;

        border-radius:
            0 0 20px 20px;

    }

    .auth-heading-row {

        gap: 15px;

    }

    .auth-heading-row h1,
    .otp-title {

        font-size: 27px;

    }

    .secure-badge {

        width: 44px;
        height: 44px;

        border-radius: 13px;

    }

    .auth-description {

        margin:
            11px 0 21px;

        font-size: 12px;

    }

    .field-label-row > span {

        display: none;

    }

    .phone-field {

        height: 55px;

    }

    .country-trigger {

        width: 112px;

        padding:
            0 10px;

    }

    .country-flag {

        font-size: 18px;

    }

    .country-code {

        font-size: 12px;

    }

    .phone-field input {

        padding:
            0 15px;

        font-size: 15px;

    }

    .form-action-row {

        flex-direction: column;

        align-items: stretch;

        gap: 14px;

        margin-top: 18px;

    }

    .auth-mode {

        order: 2;

        justify-content: center;

    }

    .primary-button {

        width: 100%;

        height: 50px;

    }

    .auth-card-footer {

        text-align: center;

    }

    .otp-top-row {

        margin-bottom: 20px;

    }

    .verification-status {

        font-size: 7px;

    }

    .otp-heading-row {

        gap: 12px;

    }

    .otp-symbol {

        width: 47px;
        height: 47px;

        border-radius: 13px;

    }

    .otp-inputs {

        gap: 6px;

    }

    .otp-input {

        height: 49px;

        border-radius: 10px;

        font-size: 19px;

    }

    .otp-action-row {

        flex-direction: column;

        align-items: stretch;

        gap: 14px;

    }

    .resend-row {

        order: 2;

        justify-content: center;

    }

    .success-layout {

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;

    }

    .success-icon {

        width: 57px;
        height: 57px;

        border-radius: 17px;

    }

    .success-step h1 {

        font-size: 29px;

    }

    .auth-footer-container {

        font-size: 6px;

    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 370px) {

    .auth-card {

        padding:
            25px 16px 22px;

    }

    .auth-heading-row h1,
    .otp-title {

        font-size: 24px;

    }

    .secure-badge {

        width: 41px;
        height: 41px;

    }

    .country-trigger {

        width: 105px;

    }

    .otp-inputs {

        gap: 4px;

    }

    .otp-input {

        height: 45px;

        font-size: 17px;

    }

}


/* ============================================================
   GENERAL ACCESSIBILITY
   NOTE:
   INPUT IS INTENTIONALLY EXCLUDED.
   PHONE / OTP HAVE THEIR OWN MATCHING FOCUS DESIGN.
   ============================================================ */

a:focus-visible,
button:not(.country-trigger):focus-visible {

    outline:
        2px solid
        rgba(255, 116, 23, .50);

    outline-offset: 3px;

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;

    }

}