/* Unified control-room verification surface for Authenticator and OTP. */
.auth-control-room {
    --auth-cyan: #26e0cf;
    --auth-blue: #4e91ff;
    --auth-gold: #f0c65a;
    --auth-ink: #eff7ff;
    --auth-muted: #9db1c8;
    --auth-line: rgba(156, 190, 224, .18);
    position: relative;
    padding: 24px 20px 20px;
    overflow: hidden;
    color: var(--auth-ink);
    text-align: center;
    border: 1px solid var(--auth-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 0%, rgba(38, 224, 207, .14), transparent 40%),
        linear-gradient(145deg, rgba(9, 28, 52, .98), rgba(7, 17, 34, .98));
    box-shadow: 0 24px 60px rgba(0, 8, 24, .38), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.auth-control-room::before,
.auth-control-room::after {
    content: '';
    position: absolute;
    pointer-events: none;
    opacity: .34;
}

.auth-control-room::before {
    inset: 0;
    background-image:
        linear-gradient(rgba(122, 177, 226, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 177, 226, .08) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.auth-control-room::after {
    width: 190px;
    height: 190px;
    top: -105px;
    left: -85px;
    border: 1px solid rgba(240, 198, 90, .3);
    border-radius: 50%;
    box-shadow: 0 0 0 16px rgba(240, 198, 90, .06), 0 0 0 32px rgba(240, 198, 90, .04);
}

.auth-control-room > * { position: relative; z-index: 1; }

.auth-control-room-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 19px;
    text-align: right;
}

.auth-control-room-kicker {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--auth-cyan);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.auth-control-room-kicker i { font-size: .74rem; }

.auth-control-room-signal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    color: #b9ffe9;
    border: 1px solid rgba(38, 224, 207, .24);
    border-radius: 999px;
    background: rgba(38, 224, 207, .08);
    font-size: .62rem;
    font-weight: 900;
}

.auth-control-room-signal i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--auth-cyan);
    box-shadow: 0 0 12px var(--auth-cyan);
}

.auth-control-room-gauge {
    --auth-progress: 0%;
    position: relative;
    width: 138px;
    height: 138px;
    display: grid;
    place-items: center;
    margin: 2px auto 18px;
    border-radius: 50%;
    background: conic-gradient(var(--auth-cyan) var(--auth-progress), rgba(115, 146, 178, .16) 0);
    box-shadow: 0 0 34px rgba(38, 224, 207, .15), inset 0 0 26px rgba(0, 0, 0, .28);
    transition: background .35s ease, box-shadow .35s ease;
}

.auth-control-room-gauge::before {
    content: '';
    position: absolute;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #0b1d35;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.auth-control-room-gauge.is-success {
    background: conic-gradient(#54edbd 100%, rgba(115, 146, 178, .16) 0);
    box-shadow: 0 0 38px rgba(84, 237, 189, .3);
}

.auth-control-room-gauge-copy { position: relative; display: grid; gap: 1px; }
.auth-control-room-gauge-copy strong { color: #fff; font: 900 1.8rem/1 'JetBrains Mono', monospace; }
.auth-control-room-gauge-copy small { color: var(--auth-muted); font-size: .62rem; font-weight: 800; }

.auth-control-room h2 {
    margin: 0;
    color: #fff;
    font-size: 1.16rem;
    font-weight: 900;
}

.auth-control-room-description {
    max-width: 310px;
    margin: 8px auto 17px;
    color: var(--auth-muted);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.8;
}

.auth-method-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 11px;
    margin-bottom: 15px;
    color: #dffcff;
    border: 1px solid rgba(78, 145, 255, .34);
    border-radius: 10px;
    background: rgba(78, 145, 255, .12);
    font-size: .72rem;
    font-weight: 900;
}

.auth-method-chip i { color: var(--auth-cyan); }

.auth-control-room .auth-code-input {
    height: 58px;
    color: #fff !important;
    text-align: center !important;
    letter-spacing: .5em;
    text-indent: .5em;
    font: 900 1.45rem/1 'JetBrains Mono', monospace !important;
    border: 1px solid rgba(38, 224, 207, .34) !important;
    border-radius: 14px !important;
    outline: none;
    background: rgba(255, 255, 255, .06) !important;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, .2);
}

.auth-control-room .auth-code-input:focus {
    border-color: var(--auth-cyan) !important;
    box-shadow: 0 0 0 3px rgba(38, 224, 207, .14), 0 0 26px rgba(38, 224, 207, .12);
}

.auth-control-room .auth-code-input::placeholder { color: rgba(220, 236, 250, .34); letter-spacing: .45em; }

.auth-control-room-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 13px;
    padding: 10px 12px;
    color: #ffb4bd;
    text-align: right;
    border: 1px solid rgba(255, 108, 127, .28);
    border-radius: 11px;
    background: rgba(255, 108, 127, .1);
    font-size: .76rem;
    font-weight: 800;
}

.auth-control-room-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 13px;
    color: #041b2a;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--auth-cyan), #79f0c6);
    box-shadow: 0 10px 25px rgba(38, 224, 207, .2);
    font-weight: 900;
    transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

.auth-control-room-submit:hover { transform: translateY(-2px); filter: brightness(1.05); }
.auth-control-room-submit:disabled { opacity: .72; cursor: wait; transform: none; }

.auth-control-room-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 19px;
    text-align: right;
}

.auth-control-room-step {
    min-height: 51px;
    padding: 7px 8px;
    color: #6f8aa5;
    border: 1px solid rgba(133, 167, 201, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    font-size: .59rem;
    font-weight: 800;
    line-height: 1.5;
    transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.auth-control-room-step i { display: block; margin-bottom: 3px; font-size: .72rem; }
.auth-control-room-step.is-active { color: #dffcff; border-color: rgba(38, 224, 207, .35); background: rgba(38, 224, 207, .09); }
.auth-control-room-step.is-done { color: #b8f5d9; border-color: rgba(84, 237, 189, .28); }

.auth-control-room-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    color: #9db1c8;
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
}

.auth-control-room-back:hover { color: var(--auth-cyan); }

@media (max-width: 480px) {
    .auth-control-room { padding: 21px 14px 17px; border-radius: 20px; }
    .auth-control-room-gauge { width: 124px; height: 124px; }
    .auth-control-room-gauge::before { width: 100px; height: 100px; }
    .auth-control-room-step { padding-inline: 6px; font-size: .56rem; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-control-room-gauge,
    .auth-control-room-submit,
    .auth-control-room-step { transition: none; }
}

/* Full-screen composition used while a login challenge is active. */
body.auth-verification-page {
    align-items: stretch;
    overflow-y: auto;
    background: #061427 !important;
}

body.auth-verification-page .bg-glow,
body.auth-verification-page .logo-box,
body.auth-verification-page .login-card > .btn-create-account,
body.auth-verification-page .login-card > .d-block,
body.auth-verification-page .footer-text,
body.auth-verification-page #locationStatus { display: none !important; }
body.auth-verification-page .login-card .logo-box { display: none !important; }
body.auth-verification-page .login-card::before,
body.auth-verification-page .verify-card::before { display: none !important; content: none !important; }

body.auth-verification-page.executor-login-shell {
    display: block;
    padding: 0;
    overflow-y: auto;
}
body.auth-verification-page.executor-login-shell .x-login-card {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body.auth-verification-page.executor-login-shell .x-login-brand,
body.auth-verification-page.executor-login-shell .x-alert,
body.auth-verification-page.executor-login-shell .x-login-card > .text-center { display: none !important; }

body.auth-verification-page .login-wrapper {
    max-width: 480px;
    min-height: 100vh;
    padding: 0;
}

body.auth-verification-page .login-card {
    min-height: 100vh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.auth-verification-page .login-card > form { min-height: 100vh; }
body.auth-verification-page .auth-control-room {
    min-height: 100vh;
    padding: 22px 24px 28px;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(520px 300px at 50% 30%, rgba(12, 91, 127, .2), transparent 72%),
        linear-gradient(180deg, #061a32 0%, #061426 52%, #03101f 100%);
    box-shadow: none;
}

body.auth-verification-page .auth-control-room::before {
    opacity: .22;
    background-size: 34px 34px;
}

body.auth-verification-page .auth-control-room-head { margin-bottom: 15px; }
body.auth-verification-page .auth-control-room-top-back {
    order: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    margin-left: auto;
    color: #dcecff;
    font-size: .85rem;
}
body.auth-verification-page .auth-control-room-kicker { margin: 0 auto; font-size: .96rem; color: #fff; }
body.auth-verification-page .auth-control-room-signal { font-size: .58rem; }

.auth-control-room-scenery {
    position: relative;
    height: 116px;
    margin: 0 -24px 17px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(16, 84, 126, .4), rgba(5, 26, 48, .08)),
        radial-gradient(circle at 18% 30%, rgba(255,255,255,.16) 0 2px, transparent 3px),
        radial-gradient(circle at 75% 25%, rgba(255,255,255,.11) 0 1px, transparent 2px),
        linear-gradient(165deg, transparent 0 52%, rgba(15, 113, 147, .32) 53% 54%, transparent 55%),
        linear-gradient(180deg, #0a3153 0%, #061b34 100%);
    border-top: 1px solid rgba(46, 213, 231, .16);
    border-bottom: 1px solid rgba(46, 213, 231, .13);
}

.auth-control-room-scenery::before,
.auth-control-room-scenery::after {
    content: '';
    position: absolute;
    bottom: 0;
    display: block;
    background: linear-gradient(180deg, rgba(9, 59, 88, .55), rgba(2, 18, 33, .98));
    clip-path: polygon(0 100%, 0 62%, 10% 62%, 14% 39%, 18% 62%, 26% 62%, 31% 22%, 36% 62%, 48% 62%, 52% 47%, 56% 62%, 70% 62%, 77% 31%, 82% 62%, 100% 62%, 100% 100%);
}
.auth-control-room-scenery::before { inset: 25px 0 0; opacity: .9; }
.auth-control-room-scenery::after { inset: 48px -15px 0; opacity: .5; transform: scaleX(1.1); }
.auth-control-room-scenery span,
.auth-control-room-scenery b {
    position: absolute;
    bottom: 24px;
    z-index: 2;
    width: 14px;
    height: 58px;
    background: linear-gradient(90deg, transparent 0 25%, rgba(31, 194, 220, .52) 26% 74%, transparent 75%);
    box-shadow: 0 0 18px rgba(31, 194, 220, .18);
}
.auth-control-room-scenery span { left: 19%; clip-path: polygon(50% 0, 100% 35%, 82% 35%, 82% 100%, 18% 100%, 18% 35%, 0 35%); }
.auth-control-room-scenery b { right: 18%; height: 72px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.auth-control-room-scenery i { position: absolute; z-index: 3; right: 50%; bottom: 28px; color: rgba(82, 212, 232, .38); font-size: 2.4rem; transform: translateX(50%); }

body.auth-verification-page .auth-control-room h2 { font-size: 1.16rem; }
body.auth-verification-page .auth-control-room-description { margin: 5px auto 17px; }
body.auth-verification-page .auth-control-room-gauge { width: 158px; height: 158px; margin: 18px auto 14px; }
body.auth-verification-page .auth-control-room-gauge::before { width: 128px; height: 128px; background: #071a30; }
body.auth-verification-page .auth-control-room-gauge-copy strong { font-size: 2rem; }

.auth-code-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    max-width: 350px;
    margin: 0 auto 16px;
}

.auth-code-slot {
    width: 100%;
    height: 48px;
    padding: 0;
    color: #f6fbff;
    text-align: center;
    border: 1px solid rgba(38, 224, 207, .48);
    border-radius: 8px;
    outline: none;
    background: rgba(4, 33, 57, .85);
    box-shadow: inset 0 0 14px rgba(0, 0, 0, .24);
    font: 900 1.18rem/1 'JetBrains Mono', monospace;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.auth-code-slot:focus {
    border-color: #36eff0;
    box-shadow: 0 0 0 2px rgba(38, 224, 207, .18), 0 0 18px rgba(38, 224, 207, .2);
    transform: translateY(-1px);
}

.auth-method-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 350px; margin: 0 auto; }
.auth-method-switch .auth-method-chip { width: 100%; min-height: 50px; justify-content: flex-start; margin: 0; padding: 7px 9px; text-align: right; }
.auth-method-switch .auth-method-chip > span { flex: 1; font-size: .62rem; line-height: 1.35; }
.auth-method-switch .auth-method-chip > span b { font-size: .58rem; }
.auth-method-switch .auth-method-chip.is-active { color: #fff; border-color: #27e5df; background: rgba(8, 109, 129, .35); box-shadow: 0 0 14px rgba(38,224,207,.12); }
.auth-method-switch .auth-method-chip.is-muted { color: #abc1d6; border-color: rgba(125, 157, 188, .24); background: rgba(255,255,255,.035); }
.auth-method-check { margin-right: auto; font-size: .7rem; color: var(--auth-cyan); }
.auth-method-chip.is-muted .auth-method-check { color: #718aa5; }

body.auth-verification-page .auth-control-room-submit { max-width: 350px; margin: 11px auto 0; display: block; }
body.auth-verification-page .auth-control-room-steps { max-width: 350px; margin-inline: auto; }
body.auth-verification-page .auth-control-room-bottom-back { margin-top: 13px; }
body.auth-verification-page .auth-control-room-submit { display: none; }
body.auth-verification-page .auth-control-room-steps {
    position: relative;
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 0;
    padding: 7px 10px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid rgba(38, 224, 207, .16);
    border-radius: 15px;
    background: rgba(2, 24, 44, .78);
}
body.auth-verification-page .auth-control-room-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    right: 22px;
    width: 1px;
    background: linear-gradient(var(--auth-cyan), rgba(38, 224, 207, .14));
}
body.auth-verification-page .auth-control-room-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 40px;
    padding: 4px 0;
    color: #6e879f;
    text-align: right;
    border: 0;
    background: transparent;
    font-size: .7rem;
}

/* The challenge is a single verification flow: keep its milestones in one
   readable vertical rail on every viewport, including legacy theme bundles. */
body.auth-verification-page .auth-control-room-steps,
body.auth-verification-page .auth-control-room-steps > .auth-control-room-step {
    grid-template-columns: 1fr !important;
}
body.auth-verification-page .auth-control-room-step i {
    z-index: 1;
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    place-items: center;
    color: #6e879f;
    border: 1px solid #506c84;
    border-radius: 50%;
    background: #061b32;
    font-size: .6rem;
}
body.auth-verification-page .auth-control-room-step.is-active { color: #f2feff; }
body.auth-verification-page .auth-control-room-step.is-active i { color: #061b32; border-color: var(--auth-cyan); background: var(--auth-cyan); box-shadow: 0 0 14px rgba(38,224,207,.35); }
body.auth-verification-page .auth-control-room-step.is-done { color: #b6eedc; }
body.auth-verification-page .auth-control-room-step.is-done i { color: #061b32; border-color: #54edbd; background: #54edbd; }

@media (max-width: 480px) {
    body.auth-verification-page .auth-control-room { padding-inline: 16px; }
    .auth-control-room-scenery { margin-inline: -16px; }
    .auth-code-grid, .auth-method-switch { max-width: 100%; }
    .auth-code-slot { height: 47px; }
}
