/* =========================================================
   CATEREASE ADMIN AUTH — V28 CLEAN UNIFIED AUTH
   Design-only revision.
   Shared by:
   - admin-login.html
   - admin-forgot-password.php
   - admin-reset-password.php
   - admin-login-otp.php
========================================================= */

:root {
    --admin-auth-navy: #08194D;
    --admin-auth-navy-hover: #0B205D;
    --admin-auth-red: #D72638;
    --admin-auth-red-dark: #B51224;

    --admin-auth-page: #F4F7FC;
    --admin-auth-white: #FFFFFF;
    --admin-auth-soft: #F8FAFD;
    --admin-auth-soft-blue: #EEF4FF;

    --admin-auth-text: #101A3A;
    --admin-auth-muted: #68758C;
    --admin-auth-muted-light: #94A3B8;

    --admin-auth-border: #DFE6F0;
    --admin-auth-border-strong: #C9D8EE;

    --admin-auth-success: #17804A;
    --admin-auth-success-soft: #EDF9F2;
    --admin-auth-success-border: #BFE8CF;

    --admin-auth-danger: #C32636;
    --admin-auth-danger-soft: #FFF0F2;
    --admin-auth-danger-border: #F2C5CC;

    --admin-auth-warning: #B7791F;
    --admin-auth-warning-soft: #FFF8E9;
    --admin-auth-warning-border: #F0D9A5;

    --admin-auth-shadow:
        0 28px 72px
        rgba(8, 25, 77, 0.14);

    --admin-auth-ease:
        cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   RESET
========================================================= */

.admin-auth-page,
.admin-auth-page * {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
}

body.admin-auth-page {
    min-height: 100vh;
    min-height: 100dvh;

    margin: 0;

    display: grid;
    place-items: center;

    padding: 28px;

    color: var(--admin-auth-text);

    font-family: "Poppins", sans-serif;

    background: var(--admin-auth-page);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.admin-auth-page button,
.admin-auth-page input {
    font: inherit;
}

.admin-auth-page button {
    border: 0;
}

.admin-auth-page button:not(:disabled) {
    cursor: pointer;
}

.admin-auth-page a {
    color: inherit;
    text-decoration: none;
}

.admin-auth-page [hidden] {
    display: none !important;
}


/* =========================================================
   MAIN CARD
========================================================= */

.admin-auth-shell {
    width: min(760px, calc(100vw - 56px));
    min-height: 650px;

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--admin-auth-border-strong);
    border-radius: 26px;

    background: var(--admin-auth-white);

    box-shadow: var(--admin-auth-shadow);

    opacity: 0;
    transform: translateY(14px) scale(0.994);

    transition:
        opacity 520ms var(--admin-auth-ease),
        transform 520ms var(--admin-auth-ease);
}

.admin-auth-shell.is-ready {
    opacity: 1;
    transform: none;
}

.admin-login-card {
    min-height: 650px;
}

.auth-recovery-shell {
    width: min(820px, calc(100vw - 56px));
    min-height: 690px;
}

.auth-reset-shell {
    min-height: 735px;
}

.admin-mfa-shell {
    min-height: 650px;
}

.shell-signature-accent {
    width: 96px;
    height: 4px;

    position: absolute;
    top: 0;
    left: 42px;

    border-radius: 0 0 999px 999px;

    background: var(--admin-auth-red);
}


/* =========================================================
   TOP BAR
========================================================= */

.access-topbar {
    min-height: 76px;

    display: flex;
    align-items: center;

    padding: 18px 28px 10px;

    position: relative;
    z-index: 3;
}

.back-home {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--admin-auth-navy);

    font-size: 0.74rem;
    font-weight: 700;

    transition: color 200ms ease;
}

.back-home-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid #D6E1EF;
    border-radius: 11px;

    color: var(--admin-auth-navy);
    background: #F8FAFD;

    font-size: 0.72rem;

    transition:
        color 220ms var(--admin-auth-ease),
        border-color 220ms var(--admin-auth-ease),
        background 220ms var(--admin-auth-ease),
        transform 220ms var(--admin-auth-ease);
}

.back-home:hover {
    color: var(--admin-auth-red-dark);
}

.back-home:hover .back-home-icon {
    color: #FFFFFF;

    border-color: var(--admin-auth-red);
    background: var(--admin-auth-red);

    transform: translateX(-2px);
}


/* =========================================================
   SINGLE FORM PANEL
========================================================= */

.admin-access-panel {
    min-width: 0;

    flex: 1 1 auto;

    display: flex;
    flex-direction: column;

    padding: 0 46px 40px;

    background: var(--admin-auth-white);
}

.admin-form-stage {
    flex: 1 1 auto;

    display: grid;
    place-items: center;

    padding: 10px 0 14px;
}

.admin-form-wrap {
    width: min(100%, 610px);
}

.auth-recovery-form-wrap {
    width: min(100%, 640px);
}


/* =========================================================
   BRAND
========================================================= */

.form-brand {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 18px;

    text-align: center;
}

.form-logo-frame {
    width: auto;
    height: auto;

    display: block;

    margin-bottom: 10px;

    border: 0;
    border-radius: 0;

    background: transparent;
    box-shadow: none;
}

.form-logo {
    width: 84px;
    height: 84px;

    display: block;

    object-fit: contain;
}

.business-name {
    color: var(--admin-auth-navy);

    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1.45;
}


/* =========================================================
   HEADING
========================================================= */

.form-heading {
    margin-bottom: 24px;

    text-align: center;
}

.form-eyebrow {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--admin-auth-red);

    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.form-heading h1 {
    margin: 0;

    color: var(--admin-auth-navy);

    font-size: clamp(1.95rem, 4vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.08;
}

.form-heading p {
    max-width: 520px;

    margin: 8px auto 0;

    color: var(--admin-auth-muted);

    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.65;
}

.form-heading p strong {
    color: var(--admin-auth-navy);
    font-weight: 700;
}


/* =========================================================
   FORM
========================================================= */

.admin-form {
    width: 100%;
}

.form-field {
    margin-bottom: 12px;
}


/* =========================================================
   FLOATING INPUT
========================================================= */

.input-control {
    min-height: 64px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    border: 1px solid var(--admin-auth-border);
    border-radius: 15px;

    background: var(--admin-auth-white);

    transition:
        border-color 220ms var(--admin-auth-ease),
        box-shadow 220ms var(--admin-auth-ease),
        transform 220ms var(--admin-auth-ease);
}

.input-control:hover {
    border-color: var(--admin-auth-border-strong);
}

.input-control:focus-within {
    border-color: #9BB2DF;

    box-shadow:
        0 0 0 3px rgba(30, 58, 138, 0.055),
        0 8px 18px rgba(8, 25, 77, 0.055);
}

.input-icon {
    width: 62px;
    height: 62px;

    flex: 0 0 62px;

    position: relative;
    z-index: 3;

    display: grid;
    place-items: center;

    border-right: 1px solid #DDE6F1;

    color: var(--admin-auth-navy);
    background: #F3F7FD;

    font-size: 0.80rem;

    transition:
        color 220ms ease,
        background 220ms ease;
}

.input-control:focus-within .input-icon {
    color: var(--admin-auth-red);
    background: #FFF6F7;
}

.floating-control input {
    width: 100%;
    min-width: 0;
    height: 62px;

    position: relative;
    z-index: 2;

    border: 0;
    outline: 0;

    padding: 25px 54px 8px 16px;

    color: var(--admin-auth-text);
    background: transparent;

    font-size: 0.80rem;
    font-weight: 600;
    line-height: 1.2;

    caret-color: var(--admin-auth-red);
}

.floating-control input::placeholder {
    color: transparent;
}

.floating-label {
    max-width: calc(100% - 128px);

    position: absolute;
    top: 50%;
    left: 78px;
    z-index: 4;

    overflow: hidden;

    color: #75839B;

    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1;

    white-space: nowrap;
    text-overflow: ellipsis;

    pointer-events: none;

    transform: translateY(-50%);

    transform-origin: left center;

    transition:
        top 220ms var(--admin-auth-ease),
        color 180ms ease,
        font-size 220ms var(--admin-auth-ease),
        font-weight 180ms ease;
}

.floating-control:focus-within .floating-label,
.floating-control.has-value .floating-label,
.floating-control input:not(:placeholder-shown) + .floating-label {
    top: 14px;

    color: var(--admin-auth-red);

    font-size: 0.58rem;
    font-weight: 700;
}

.floating-control.has-value:not(:focus-within) .floating-label,
.floating-control input:not(:placeholder-shown):not(:focus) + .floating-label {
    color: var(--admin-auth-navy);
}

.input-focus-line {
    width: 76px;
    height: 3px;

    position: absolute;
    top: 0;
    left: 76px;
    z-index: 4;

    border-radius: 0 0 999px 999px;

    background: var(--admin-auth-red);

    transform: scaleX(0);
    transform-origin: left center;

    transition: transform 280ms var(--admin-auth-ease);
}

.input-control:focus-within .input-focus-line {
    transform: scaleX(1);
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.toggle-password {
    width: 40px;
    height: 40px;

    position: absolute;
    top: 50%;
    right: 9px;
    z-index: 5;

    display: grid;
    place-items: center;

    border: 1px solid transparent;
    border-radius: 10px;

    color: #71809A;
    background: transparent;

    transform: translateY(-50%);

    transition:
        color 200ms ease,
        border-color 200ms ease,
        background 200ms ease,
        transform 200ms ease;
}

.toggle-password:hover {
    color: var(--admin-auth-navy);

    border-color: #DCE5F0;
    background: #F3F7FD;

    transform: translateY(-50%) scale(1.03);
}


/* =========================================================
   LOGIN / RECOVERY ROW
========================================================= */

.admin-login-recovery-row {
    min-height: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin: 2px 0 12px;
}

.admin-login-recovery-row > span {
    color: var(--admin-auth-muted-light);

    font-size: 0.66rem;
    font-weight: 500;
}

.admin-forgot-password-link,
.auth-recovery-text-button {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 0;

    color: var(--admin-auth-navy);
    background: transparent;

    font-size: 0.70rem;
    font-weight: 700;

    transition:
        color 180ms ease,
        transform 180ms ease;
}

.admin-forgot-password-link:hover,
.auth-recovery-text-button:hover {
    color: var(--admin-auth-red);

    transform: translateY(-1px);
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.login-button {
    width: 100%;
    min-height: 56px;

    position: relative;
    overflow: hidden;
    isolation: isolate;

    padding: 5px;

    border: 0;
    border-radius: 14px;

    color: #FFFFFF;
    background: var(--admin-auth-navy);

    box-shadow:
        0 13px 28px
        rgba(8, 25, 77, 0.15);

    transition:
        transform 220ms var(--admin-auth-ease),
        box-shadow 220ms var(--admin-auth-ease),
        background 220ms ease,
        opacity 220ms ease;
}

.login-button::before {
    content: "";

    width: 50px;
    height: 180%;

    position: absolute;
    top: -40%;
    left: -90px;
    z-index: 1;

    opacity: 0.68;

    background: rgba(255, 255, 255, 0.38);

    transform: rotate(18deg);

    filter: blur(1px);

    transition: left 560ms var(--admin-auth-ease);

    pointer-events: none;
}

.login-button:hover::before,
.login-button:focus-visible::before {
    left: calc(100% + 58px);
}

.login-button:hover,
.login-button:focus-visible {
    background: var(--admin-auth-navy-hover);

    box-shadow:
        0 16px 32px
        rgba(8, 25, 77, 0.19);

    transform: translateY(-1px);
}

.login-button:active {
    transform: scale(0.995);
}

.login-button:disabled {
    cursor: wait;

    opacity: 0.65;

    transform: none;
}

.login-button-default {
    min-height: 44px;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.login-button-label {
    padding-left: 12px;

    font-size: 0.79rem;
    font-weight: 700;
    line-height: 1;
}

.login-button-action {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.075);

    transition:
        border-color 220ms ease,
        background 220ms ease,
        transform 220ms ease;
}

.login-button-action i {
    font-size: 0.72rem;
}

.login-button:hover .login-button-action,
.login-button:focus-visible .login-button-action {
    border-color: var(--admin-auth-red);
    background: var(--admin-auth-red);

    transform: translateX(1px);
}

.login-button-loading {
    min-height: 44px;

    position: relative;
    z-index: 2;

    display: none;
    align-items: center;
    justify-content: center;

    gap: 10px;

    font-size: 0.76rem;
    font-weight: 700;
}

.login-button.is-loading .login-button-default {
    display: none;
}

.login-button.is-loading .login-button-loading {
    display: flex;
}

.login-loading-spinner {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.07);
}

.login-button-loading i {
    animation: adminAuthSpin 780ms linear infinite;
}


/* =========================================================
   STATUS MESSAGES
========================================================= */

.login-message,
.recovery-message {
    width: 100%;

    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-bottom: 14px;
    padding: 12px 13px;

    border: 1px solid var(--admin-auth-border);
    border-radius: 12px;

    color: var(--admin-auth-muted);
    background: var(--admin-auth-soft);

    font-size: 0.70rem;
    font-weight: 500;
    line-height: 1.55;
}

.login-message.show,
.recovery-message.show {
    animation: adminAuthMessageIn 300ms var(--admin-auth-ease);
}

.login-message-icon,
.recovery-message-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    display: grid;
    place-items: center;

    border: 1px solid currentColor;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.78);

    font-size: 0.62rem;
}

.login-message.error,
.recovery-message.error {
    color: var(--admin-auth-danger);

    border-color: var(--admin-auth-danger-border);
    background: var(--admin-auth-danger-soft);
}

.login-message.success,
.recovery-message.success {
    color: var(--admin-auth-success);

    border-color: var(--admin-auth-success-border);
    background: var(--admin-auth-success-soft);
}

.login-message.warning,
.recovery-message.warning {
    color: var(--admin-auth-warning);

    border-color: var(--admin-auth-warning-border);
    background: var(--admin-auth-warning-soft);
}

.recovery-message-copy {
    min-width: 0;
}

.recovery-message-copy strong {
    display: block;

    color: inherit;

    font-size: 0.72rem;
    font-weight: 700;
}

.recovery-message-copy p {
    margin: 3px 0 0;
}


/* =========================================================
   RECOVERY FLOW
========================================================= */

.recovery-step.active {
    animation: adminAuthSectionIn 320ms var(--admin-auth-ease);
}

.auth-recovery-small-note,
.auth-recovery-help {
    margin: 9px 0 0;

    color: var(--admin-auth-muted);

    font-size: 0.66rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
}

.auth-recovery-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin: 4px 0 12px;
}

.auth-recovery-progress {
    margin-top: 22px;
    padding-top: 16px;

    border-top: 1px solid var(--admin-auth-border);
}

.auth-recovery-progress > span {
    display: block;

    margin-bottom: 10px;

    color: var(--admin-auth-muted-light);

    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.auth-recovery-progress-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 8px;
}

.auth-recovery-progress-item {
    min-height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    border: 1px solid var(--admin-auth-border);
    border-radius: 10px;

    color: var(--admin-auth-muted-light);
    background: #FAFBFD;

    font-size: 0.64rem;
    font-weight: 700;

    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.auth-recovery-progress-item.current {
    color: var(--admin-auth-red);

    border-color: #F0C7CD;
    background: #FFF6F7;
}

.auth-recovery-progress-item.completed {
    color: var(--admin-auth-navy);

    border-color: #CBD8E9;
    background: #F3F7FD;
}

.development-otp-panel {
    margin-bottom: 12px;
    padding: 11px 12px;

    border: 1px dashed #D6C27A;
    border-radius: 11px;

    color: #806816;
    background: #FFFBE8;

    text-align: center;
}

.development-otp-panel span {
    display: block;

    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.development-otp-panel strong {
    display: block;

    margin-top: 4px;

    font-size: 1rem;
    letter-spacing: 0.12em;
}


/* =========================================================
   PASSWORD RULES
========================================================= */

.auth-password-rules {
    list-style: none;

    display: grid;
    gap: 7px;

    margin: 4px 0 14px;
    padding: 0;
}

.auth-password-rules li {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--admin-auth-muted);

    font-size: 0.66rem;
    font-weight: 500;
}

.auth-password-rules li i {
    color: #CBD5E1;

    font-size: 0.36rem;
}

.auth-password-rules li.valid,
.auth-password-rules li.is-valid {
    color: var(--admin-auth-success);
}

.auth-password-rules li.valid i,
.auth-password-rules li.is-valid i {
    color: var(--admin-auth-success);
}


/* =========================================================
   MFA
========================================================= */

.admin-mfa-code-row {
    margin-top: 2px;
}

.admin-mfa-resend-button {
    border: 0;
}

.admin-mfa-resend-button:disabled {
    color: var(--admin-auth-muted-light);

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   ADMIN AUTH TOAST
========================================================= */

.admin-auth-toast {
    width: min(410px, calc(100vw - 28px));

    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: flex-start;

    gap: 11px;

    padding: 13px;

    border: 1px solid var(--admin-auth-border);
    border-radius: 14px;

    color: var(--admin-auth-text);
    background: #FFFFFF;

    box-shadow:
        0 18px 44px
        rgba(8, 25, 77, 0.16);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition:
        opacity 220ms ease,
        visibility 220ms ease,
        transform 260ms var(--admin-auth-ease);
}

.admin-auth-toast.show {
    opacity: 1;
    visibility: visible;

    transform: none;
}

.admin-auth-toast-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: var(--admin-auth-navy);
    background: var(--admin-auth-soft-blue);

    font-size: 0.72rem;
}

.admin-auth-toast-copy strong {
    display: block;

    color: var(--admin-auth-navy);

    font-size: 0.73rem;
    font-weight: 700;
}

.admin-auth-toast-copy p {
    margin: 3px 0 0;

    color: var(--admin-auth-muted);

    font-size: 0.66rem;
    line-height: 1.5;
}

.admin-auth-toast-close {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border: 1px solid var(--admin-auth-border);
    border-radius: 9px;

    color: #758199;
    background: #FFFFFF;

    transform: rotate(0deg);

    transition:
        transform 280ms var(--admin-auth-ease),
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.admin-auth-toast-close:hover,
.admin-auth-toast-close:focus-visible {
    color: var(--admin-auth-red);

    border-color: #F0C7C7;
    background: #FFF7F7;

    transform: rotate(90deg);
}


/* =========================================================
   REMOVE OLD SPLIT-PANEL UI
========================================================= */

.admin-showcase,
.access-panel-footer,
.access-status,
.form-security-note,
.form-brand-copy,
.showcase-topbar,
.showcase-content,
.showcase-footer,
.admin-features,
.feature-card,
.showcase-security-note,
.showcase-security-card {
    display: none !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 720px) {
    body.admin-auth-page {
        display: block;

        padding: 12px;
    }

    .admin-auth-shell,
    .auth-recovery-shell {
        width: 100%;
        min-height: calc(100dvh - 24px);

        border-radius: 22px;
    }

    .access-topbar {
        min-height: 68px;

        padding: 14px 18px 8px;
    }

    .back-home {
        font-size: 0.68rem;
    }

    .back-home-icon {
        width: 36px;
        height: 36px;
    }

    .admin-access-panel {
        padding: 0 22px 28px;
    }

    .admin-form-stage {
        padding: 8px 0 18px;
    }

    .form-logo {
        width: 74px;
        height: 74px;
    }

    .business-name {
        font-size: 0.72rem;
    }

    .form-heading h1 {
        font-size: 1.9rem;
    }

    .form-heading p {
        font-size: 0.73rem;
    }

    .input-control {
        min-height: 60px;
    }

    .input-icon,
    .floating-control input {
        height: 58px;
    }

    .input-icon {
        width: 58px;
        flex-basis: 58px;
    }

    .floating-label {
        left: 73px;
    }

    .input-focus-line {
        left: 72px;
    }

    .auth-recovery-progress-track {
        gap: 6px;
    }

    .admin-auth-toast {
        top: 12px;
        right: 12px;
        left: 12px;

        width: auto;
    }
}

@media (max-width: 460px) {
    body.admin-auth-page {
        padding: 0;

        background: #FFFFFF;
    }

    .admin-auth-shell,
    .auth-recovery-shell {
        min-height: 100dvh;

        border: 0;
        border-radius: 0;

        box-shadow: none;
    }

    .shell-signature-accent {
        left: 20px;
        width: 78px;
    }

    .access-topbar {
        padding: 14px 16px 6px;
    }

    .back-home > span:last-child {
        display: none;
    }

    .admin-access-panel {
        padding: 0 16px 24px;
    }

    .form-brand {
        margin-bottom: 16px;
    }

    .form-heading {
        margin-bottom: 20px;
    }

    .form-heading h1 {
        font-size: 1.72rem;
    }

    .form-heading p {
        font-size: 0.70rem;
    }

    .floating-control input {
        font-size: 0.76rem;
    }

    .login-button {
        min-height: 54px;
    }

    .login-button-action {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .login-button-action i {
        font-size: 0.68rem;
    }

    .login-button-label {
        font-size: 0.75rem;
    }

    .auth-recovery-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-recovery-progress-item {
        min-height: 30px;

        font-size: 0.60rem;
    }
}


/* =========================================================
   SHORT LAPTOP
========================================================= */

@media (min-width: 721px) and (max-height: 760px) {
    body.admin-auth-page {
        padding: 12px;
    }

    .admin-auth-shell {
        min-height: calc(100dvh - 24px);
    }

    .access-topbar {
        min-height: 64px;

        padding-top: 14px;
    }

    .admin-access-panel {
        padding-bottom: 24px;
    }

    .admin-form-stage {
        padding-top: 4px;
        padding-bottom: 8px;
    }

    .form-brand {
        margin-bottom: 12px;
    }

    .form-logo {
        width: 66px;
        height: 66px;
    }

    .form-heading {
        margin-bottom: 18px;
    }

    .form-heading h1 {
        font-size: 1.85rem;
    }

    .form-heading p {
        margin-top: 5px;

        font-size: 0.70rem;
    }

    .input-control {
        min-height: 58px;
    }

    .input-icon,
    .floating-control input {
        height: 56px;
    }

    .input-icon {
        width: 58px;
        flex-basis: 58px;
    }

    .floating-label {
        left: 73px;
    }

    .input-focus-line {
        left: 72px;
    }

    .auth-recovery-progress {
        margin-top: 15px;
        padding-top: 12px;
    }
}


/* =========================================================
   MOTION
========================================================= */

@keyframes adminAuthSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes adminAuthMessageIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes adminAuthSectionIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-auth-page *,
    .admin-auth-page *::before,
    .admin-auth-page *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .admin-auth-shell {
        opacity: 1 !important;
        transform: none !important;
    }

    .login-button::before {
        display: none !important;
    }
}


/* =========================================================
   V29 — ADMIN RECOVERY MATCHES CUSTOMER FORGOT-PASSWORD UI
   Presentation-only patch.
   No recovery, OTP, session, API, or password logic changed.
========================================================= */

/* ---------------------------------------------------------
   RECOVERY CARD / FORM SCALE
   --------------------------------------------------------- */

.admin-recovery-page .auth-recovery-shell {
    width: min(1024px, calc(100vw - 36px));
    min-height: min(820px, calc(100dvh - 36px));
    max-height: none;
}

.admin-recovery-page .admin-access-panel {
    padding-left: 58px;
    padding-right: 58px;
    padding-bottom: 42px;
}

.admin-recovery-page .admin-form-stage {
    padding-top: 8px;
    padding-bottom: 18px;
}

.admin-recovery-page .auth-recovery-form-wrap {
    width: min(100%, 800px);
}

.admin-recovery-page .form-brand {
    margin-bottom: 22px;
}

.admin-recovery-page .form-logo {
    width: 84px;
    height: 84px;
}

.admin-recovery-page .business-name {
    font-size: 0.80rem;
}

.admin-recovery-page .auth-recovery-heading {
    margin-bottom: 26px;
}

.admin-recovery-page .auth-recovery-heading .form-eyebrow {
    margin-bottom: 9px;

    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.admin-recovery-page .auth-recovery-heading h1 {
    font-size: clamp(2rem, 4vw, 2.45rem);
}

.admin-recovery-page .auth-recovery-heading p {
    max-width: 620px;

    margin-top: 8px;

    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   RECOVERY INPUTS
   --------------------------------------------------------- */

.admin-recovery-page .form-field {
    margin-bottom: 14px;
}

.admin-recovery-page .input-control {
    min-height: 64px;
}

.admin-recovery-page .input-icon,
.admin-recovery-page .floating-control input {
    height: 62px;
}

.admin-recovery-page .input-icon {
    width: 72px;
    flex-basis: 72px;
}

.admin-recovery-page .floating-control input {
    padding-left: 18px;
    padding-right: 56px;

    font-size: 0.82rem;
}

.admin-recovery-page .floating-label {
    left: 90px;

    font-size: 0.79rem;
}

.admin-recovery-page .input-focus-line {
    left: 88px;
}


/* ---------------------------------------------------------
   CHANGE EMAIL + RESEND
   Give both controls deliberate auth-page typography and
   interaction instead of leaving browser-like text buttons.
   --------------------------------------------------------- */

.admin-recovery-page .auth-recovery-actions {
    min-height: 44px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin: 2px 0 14px;
}

.admin-recovery-page .auth-recovery-text-button {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 4px;

    border: 0;
    border-radius: 9px;

    color: var(--admin-auth-navy);
    background: transparent;

    font-family: "Poppins", sans-serif;
    font-size: 0.70rem;
    font-weight: 650;
    letter-spacing: -0.012em;
    line-height: 1;

    box-shadow: none;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 200ms var(--admin-auth-ease);
}

.admin-recovery-page .auth-recovery-text-button i {
    color: var(--admin-auth-navy);

    font-size: 0.69rem;
    line-height: 1;

    transition:
        color 180ms ease,
        transform 220ms var(--admin-auth-ease);
}

.admin-recovery-page .auth-recovery-text-button:hover:not(:disabled),
.admin-recovery-page .auth-recovery-text-button:focus-visible:not(:disabled) {
    color: var(--admin-auth-red);
    background: #FFF6F7;

    outline: none;

    transform: translateY(-1px);
}

.admin-recovery-page .auth-recovery-text-button:hover:not(:disabled) i,
.admin-recovery-page .auth-recovery-text-button:focus-visible:not(:disabled) i {
    color: var(--admin-auth-red);
}

.admin-recovery-page .auth-recovery-change-email:hover:not(:disabled) i,
.admin-recovery-page .auth-recovery-change-email:focus-visible:not(:disabled) i {
    transform: translateX(-2px);
}

.admin-recovery-page #resendRecoveryCodeBtn:hover:not(:disabled) i,
.admin-recovery-page #resendRecoveryCodeBtn:focus-visible:not(:disabled) i {
    transform: rotate(-24deg);
}

.admin-recovery-page .auth-recovery-text-button:disabled {
    color: #8E9AAF;
    background: transparent;

    cursor: not-allowed;

    opacity: 1;

    transform: none;
}

.admin-recovery-page .auth-recovery-text-button:disabled i {
    color: #8E9AAF;
}

.admin-recovery-page #resendRecoveryCodeBtn.is-loading i {
    animation: adminAuthSpin 780ms linear infinite !important;
}


/* ---------------------------------------------------------
   PRIMARY RECOVERY BUTTONS
   Match the customer forgot-password button proportions.
   --------------------------------------------------------- */

.admin-recovery-page .recovery-primary-button,
.admin-recovery-page #resetPasswordBtn {
    min-height: 68px;

    padding: 5px;

    border-radius: 14px;
}

.admin-recovery-page .recovery-primary-button .login-button-default,
.admin-recovery-page #resetPasswordBtn .login-button-default {
    width: 100%;
    min-height: 56px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.admin-recovery-page .recovery-primary-button .login-button-label,
.admin-recovery-page #resetPasswordBtn .login-button-label {
    padding-left: 16px;

    color: #FFFFFF;

    font-family: "Poppins", sans-serif;
    font-size: 0.80rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
}

.admin-recovery-page .recovery-primary-button .login-button-action,
.admin-recovery-page #resetPasswordBtn .login-button-action {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    border-radius: 11px;
}

.admin-recovery-page .recovery-primary-button .login-button-action i,
.admin-recovery-page #resetPasswordBtn .login-button-action i {
    font-size: 0.74rem;
}


/* ---------------------------------------------------------
   IMPORTANT — KEEP LOADING TEXT VISIBLE
   Recovery JS changes the existing label to:
   "Sending...", "Verifying...", "Changing Password...", etc.
   The generic admin login CSS used to hide that label layer,
   which is why the button looked blank while loading.
   --------------------------------------------------------- */

.admin-recovery-page
.recovery-primary-button.is-loading
.login-button-default,

.admin-recovery-page
#resetPasswordBtn.is-loading
.login-button-default {
    display: flex !important;

    opacity: 1 !important;
    visibility: visible !important;
}

.admin-recovery-page
.recovery-primary-button.is-loading
.login-button-loading,

.admin-recovery-page
#resetPasswordBtn.is-loading
.login-button-loading {
    display: none !important;
}

.admin-recovery-page .recovery-primary-button:disabled,
.admin-recovery-page #resetPasswordBtn:disabled {
    color: #FFFFFF;

    opacity: 0.86;

    cursor: wait;
}

.admin-recovery-page
.recovery-primary-button.is-loading
.login-button-label,

.admin-recovery-page
#resetPasswordBtn.is-loading
.login-button-label {
    color: #FFFFFF !important;

    opacity: 1 !important;
    visibility: visible !important;
}

.admin-recovery-page
.recovery-primary-button.is-loading
[data-button-icon],

.admin-recovery-page
#resetPasswordBtn.is-loading
#resetPasswordBtnIcon {
    animation: adminAuthSpin 780ms linear infinite;
}


/* ---------------------------------------------------------
   RECOVERY STATUS MESSAGE
   --------------------------------------------------------- */

.admin-recovery-page .recovery-message {
    width: 100%;

    margin-bottom: 22px;
}

.admin-recovery-page .recovery-message-copy strong {
    font-size: 0.74rem;
}

.admin-recovery-page .recovery-message-copy p {
    font-size: 0.68rem;
}


/* ---------------------------------------------------------
   PROGRESS — MATCH CUSTOMER RECOVERY PAGE
   --------------------------------------------------------- */

.admin-recovery-page .auth-recovery-progress {
    width: 100%;

    margin-top: 22px;
    padding-top: 16px;
}

.admin-recovery-page .auth-recovery-progress > span {
    margin-bottom: 11px;

    font-size: 0.62rem;
}

.admin-recovery-page .auth-recovery-progress-track {
    gap: 10px;
}

.admin-recovery-page .auth-recovery-progress-item {
    min-height: 42px;

    border-radius: 11px;

    font-size: 0.68rem;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 760px) {
    .admin-recovery-page .auth-recovery-shell {
        width: 100%;
        min-height: calc(100dvh - 24px);

        border-radius: 22px;
    }

    .admin-recovery-page .admin-access-panel {
        padding-left: 22px;
        padding-right: 22px;
        padding-bottom: 30px;
    }

    .admin-recovery-page .form-logo {
        width: 74px;
        height: 74px;
    }

    .admin-recovery-page .auth-recovery-heading h1 {
        font-size: 1.90rem;
    }

    .admin-recovery-page .auth-recovery-heading p {
        font-size: 0.73rem;
    }

    .admin-recovery-page .recovery-primary-button,
    .admin-recovery-page #resetPasswordBtn {
        min-height: 60px;
    }

    .admin-recovery-page
    .recovery-primary-button
    .login-button-default,
    .admin-recovery-page
    #resetPasswordBtn
    .login-button-default {
        min-height: 48px;
    }

    .admin-recovery-page
    .recovery-primary-button
    .login-button-action,
    .admin-recovery-page
    #resetPasswordBtn
    .login-button-action {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 460px) {
    .admin-recovery-page .admin-access-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-recovery-page .auth-recovery-heading h1 {
        font-size: 1.72rem;
    }

    .admin-recovery-page .input-icon {
        width: 60px;
        flex-basis: 60px;
    }

    .admin-recovery-page .floating-label {
        left: 76px;
    }

    .admin-recovery-page .input-focus-line {
        left: 74px;
    }

    .admin-recovery-page .auth-recovery-actions {
        align-items: stretch;
        flex-direction: column;

        gap: 6px;
    }

    .admin-recovery-page .auth-recovery-text-button {
        width: 100%;
        min-height: 40px;

        justify-content: flex-start;

        padding: 0 9px;
    }

    .admin-recovery-page .recovery-primary-button .login-button-label,
    .admin-recovery-page #resetPasswordBtn .login-button-label {
        padding-left: 12px;

        font-size: 0.75rem;
    }

    .admin-recovery-page .auth-recovery-progress-track {
        gap: 6px;
    }

    .admin-recovery-page .auth-recovery-progress-item {
        min-height: 38px;

        font-size: 0.62rem;
    }
}


/* ---------------------------------------------------------
   SHORT LAPTOP
   --------------------------------------------------------- */

@media (min-width: 761px) and (max-height: 760px) {
    .admin-recovery-page .auth-recovery-shell {
        min-height: calc(100dvh - 24px);
    }

    .admin-recovery-page .admin-access-panel {
        padding-bottom: 24px;
    }

    .admin-recovery-page .form-logo {
        width: 66px;
        height: 66px;
    }

    .admin-recovery-page .form-brand {
        margin-bottom: 12px;
    }

    .admin-recovery-page .auth-recovery-heading {
        margin-bottom: 18px;
    }

    .admin-recovery-page .auth-recovery-heading h1 {
        font-size: 1.82rem;
    }

    .admin-recovery-page .auth-recovery-progress {
        margin-top: 15px;
        padding-top: 12px;
    }
}


/* =========================================================
   V30 — COMPACT ADMIN RECOVERY CARD
   Fixes the oversized recovery container introduced in V29.
   Design-only; no authentication/recovery logic changes.
========================================================= */

body.admin-auth-page.admin-recovery-page {
    padding: 20px;
}

.admin-recovery-page .auth-recovery-shell {
    width: min(860px, calc(100vw - 40px));
    min-height: 0;
    height: auto;
    max-height: calc(100dvh - 40px);

    border-radius: 24px;
}

.admin-recovery-page .access-topbar {
    min-height: 70px;
    padding: 14px 26px 8px;
}

.admin-recovery-page .admin-access-panel {
    padding: 0 40px 30px;
}

.admin-recovery-page .admin-form-stage {
    padding: 4px 0 10px;
}

.admin-recovery-page .auth-recovery-form-wrap {
    width: min(100%, 680px);
}

.admin-recovery-page .form-brand {
    margin-bottom: 16px;
}

.admin-recovery-page .form-logo {
    width: 72px;
    height: 72px;
}

.admin-recovery-page .business-name {
    font-size: 0.75rem;
}

.admin-recovery-page .auth-recovery-heading {
    margin-bottom: 20px;
}

.admin-recovery-page .auth-recovery-heading h1 {
    font-size: clamp(1.8rem, 3vw, 2.15rem);
}

.admin-recovery-page .auth-recovery-heading p {
    max-width: 540px;
    margin-top: 6px;
    font-size: 0.74rem;
}

.admin-recovery-page .form-field {
    margin-bottom: 11px;
}

.admin-recovery-page .recovery-primary-button,
.admin-recovery-page #resetPasswordBtn {
    min-height: 60px;
}

.admin-recovery-page .recovery-primary-button .login-button-default,
.admin-recovery-page #resetPasswordBtn .login-button-default {
    min-height: 48px;
}

.admin-recovery-page .recovery-primary-button .login-button-action,
.admin-recovery-page #resetPasswordBtn .login-button-action {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.admin-recovery-page .auth-recovery-small-note {
    margin-top: 7px;
}

.admin-recovery-page .auth-recovery-progress {
    margin-top: 16px;
    padding-top: 13px;
}

.admin-recovery-page .auth-recovery-progress-item {
    min-height: 38px;
}

.admin-recovery-page .recovery-message {
    margin-bottom: 16px;
}

/* Keep OTP and reset steps compact too */
.admin-recovery-page #otpRecoveryStep,
.admin-recovery-page .auth-reset-shell .recovery-step {
    width: 100%;
}

/* Short desktop/laptop screens */
@media (min-width: 761px) and (max-height: 760px) {
    body.admin-auth-page.admin-recovery-page {
        padding: 10px;
    }

    .admin-recovery-page .auth-recovery-shell {
        max-height: calc(100dvh - 20px);
    }

    .admin-recovery-page .access-topbar {
        min-height: 58px;
        padding-top: 10px;
    }

    .admin-recovery-page .admin-access-panel {
        padding-bottom: 18px;
    }

    .admin-recovery-page .form-brand {
        margin-bottom: 10px;
    }

    .admin-recovery-page .form-logo {
        width: 60px;
        height: 60px;
    }

    .admin-recovery-page .auth-recovery-heading {
        margin-bottom: 15px;
    }

    .admin-recovery-page .auth-recovery-heading h1 {
        font-size: 1.68rem;
    }

    .admin-recovery-page .auth-recovery-progress {
        margin-top: 12px;
        padding-top: 10px;
    }
}

/* Tablet */
@media (max-width: 760px) {
    body.admin-auth-page.admin-recovery-page {
        padding: 12px;
    }

    .admin-recovery-page .auth-recovery-shell {
        width: 100%;
        max-height: none;
        min-height: calc(100dvh - 24px);
    }

    .admin-recovery-page .admin-access-panel {
        padding: 0 20px 26px;
    }

    .admin-recovery-page .auth-recovery-form-wrap {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 460px) {
    body.admin-auth-page.admin-recovery-page {
        padding: 0;
    }

    .admin-recovery-page .auth-recovery-shell {
        min-height: 100dvh;
        border-radius: 0;
    }

    .admin-recovery-page .admin-access-panel {
        padding: 0 16px 22px;
    }
}


/* =========================================================
   V31 — MATCH USER RECOVERY ACTION CONTROLS EXACTLY
   Change email = text action
   Resend = compact outlined secondary action
   Presentation only.
========================================================= */

.admin-recovery-page .auth-recovery-actions {
    width: 100%;
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin: 0 0 12px;
}


/* CHANGE EMAIL — same treatment as customer forgot-password */

.admin-recovery-page #changeRecoveryEmailBtn {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 2px;

    border: 0;
    border-radius: 0;

    color: #08194D;
    background: transparent;

    box-shadow: none;

    font-family: "Poppins", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;

    transition:
        color 180ms ease,
        transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-recovery-page #changeRecoveryEmailBtn i {
    color: #D72638;

    font-size: 0.68rem;
    line-height: 1;

    transition:
        color 180ms ease,
        transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-recovery-page #changeRecoveryEmailBtn:hover:not(:disabled),
.admin-recovery-page #changeRecoveryEmailBtn:focus-visible:not(:disabled) {
    color: #D72638;
    background: transparent;

    outline: none;

    transform: none;
}

.admin-recovery-page #changeRecoveryEmailBtn:hover:not(:disabled) i,
.admin-recovery-page #changeRecoveryEmailBtn:focus-visible:not(:disabled) i {
    color: #D72638;

    transform: translateX(-2px);
}


/* RESEND — same outlined pill used on customer recovery */

.admin-recovery-page #resendRecoveryCodeBtn {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 13px;

    border: 1px solid #DFE6F0;
    border-radius: 10px;

    color: #17346F;
    background: #F7F9FD;

    box-shadow: none;

    font-family: "Poppins", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;

    white-space: nowrap;

    transition:
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-recovery-page #resendRecoveryCodeBtn i {
    color: #D72638;

    font-size: 0.68rem;
    line-height: 1;

    transition:
        color 180ms ease,
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-recovery-page #resendRecoveryCodeBtn:hover:not(:disabled),
.admin-recovery-page #resendRecoveryCodeBtn:focus-visible:not(:disabled) {
    color: #D72638;

    border-color: #C9D8EE;
    background: #FFFFFF;

    outline: none;

    transform: translateY(-1px);
}

.admin-recovery-page #resendRecoveryCodeBtn:hover:not(:disabled) i,
.admin-recovery-page #resendRecoveryCodeBtn:focus-visible:not(:disabled) i {
    transform: rotate(-24deg);
}


/* Disabled countdown state mirrors the customer page */

.admin-recovery-page #resendRecoveryCodeBtn:disabled {
    color: #8995A8;

    border-color: #E1E7EF;
    background: #F3F6FA;

    cursor: not-allowed;

    opacity: 1;

    transform: none;
}

.admin-recovery-page #resendRecoveryCodeBtn:disabled i {
    color: #D72638;
}


/* Loading resend keeps its label visible */

.admin-recovery-page #resendRecoveryCodeBtn.is-loading {
    color: #8995A8;
}

.admin-recovery-page #resendRecoveryCodeBtn.is-loading i {
    color: #D72638;

    animation: adminAuthSpin 780ms linear infinite !important;
}


/* Mobile keeps the same visual language instead of turning both
   actions into large full-width buttons. */

@media (max-width: 460px) {
    .admin-recovery-page .auth-recovery-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        gap: 8px;
    }

    .admin-recovery-page #changeRecoveryEmailBtn,
    .admin-recovery-page #resendRecoveryCodeBtn {
        width: auto;
    }

    .admin-recovery-page #resendRecoveryCodeBtn {
        padding-left: 11px;
        padding-right: 11px;
    }
}


/* =========================================================
   V32 — ADMIN MFA RESEND + SUCCESS MESSAGE POLISH
   Presentation-only.
   No OTP, resend, timer, MFA, session, or API logic changed.
========================================================= */


/* ---------------------------------------------------------
   MFA SUCCESS / STATUS MESSAGE
   Center icon and copy vertically so they read as one row.
   --------------------------------------------------------- */

.admin-mfa-page .login-message {
    min-height: 58px;

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 16px;
    padding: 12px 15px;

    border-radius: 12px;

    font-family: "Poppins", sans-serif;
    font-size: 0.70rem;
    font-weight: 500;
    line-height: 1.45;
}

.admin-mfa-page .login-message-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    display: grid;
    place-items: center;

    margin: 0;

    border-radius: 9px;

    font-size: 0.61rem;
    line-height: 1;
}

.admin-mfa-page #loginMessageText {
    min-width: 0;

    display: block;

    margin: 0;
    padding: 0;

    line-height: 1.45;
}

.admin-mfa-page .login-message.success {
    color: #15803D;

    border-color: #BFE8CF;
    background: #EDF9F2;
}

.admin-mfa-page .login-message.success .login-message-icon {
    color: #15803D;

    border-color: #9ED8B5;
    background: #FFFFFF;
}

.admin-mfa-page .login-message.error {
    color: #B91C1C;

    border-color: #F2C5CC;
    background: #FFF0F2;
}

.admin-mfa-page .login-message.warning {
    color: #A16207;

    border-color: #F0D9A5;
    background: #FFF8E9;
}


/* ---------------------------------------------------------
   MFA CODE / RESEND ROW
   --------------------------------------------------------- */

.admin-mfa-page .admin-mfa-code-row {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin: 2px 0 12px;
}

.admin-mfa-page #mfaExpiryHint {
    color: #7B879B;

    font-family: "Poppins", sans-serif;
    font-size: 0.66rem;
    font-weight: 500;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   MFA RESEND BUTTON
   Mirrors the compact outlined resend control used in the
   customer/admin forgot-password recovery flow.
   --------------------------------------------------------- */

.admin-mfa-page #adminMfaResendButton {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 13px;

    border: 1px solid #DFE6F0;
    border-radius: 10px;

    color: #17346F;
    background: #F7F9FD;

    box-shadow: none;

    font-family: "Poppins", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;

    white-space: nowrap;

    transform: none;

    transition:
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease,
        transform 200ms var(--admin-auth-ease);
}

.admin-mfa-page #adminMfaResendButton i {
    color: var(--admin-auth-red);

    font-size: 0.68rem;
    line-height: 1;

    transition:
        color 180ms ease,
        transform 220ms var(--admin-auth-ease);
}

.admin-mfa-page #adminMfaResendButton:hover:not(:disabled),
.admin-mfa-page #adminMfaResendButton:focus-visible:not(:disabled) {
    color: var(--admin-auth-red);

    border-color: #C9D8EE;
    background: #FFFFFF;

    box-shadow:
        0 6px 14px
        rgba(8, 25, 77, 0.055);

    outline: none;

    transform: translateY(-1px);
}

.admin-mfa-page #adminMfaResendButton:hover:not(:disabled) i,
.admin-mfa-page #adminMfaResendButton:focus-visible:not(:disabled) i {
    transform: rotate(-24deg);
}


/* Countdown / disabled state */

.admin-mfa-page #adminMfaResendButton:disabled {
    color: #8995A8;

    border-color: #E1E7EF;
    background: #F3F6FA;

    cursor: not-allowed;

    opacity: 1;

    box-shadow: none;

    transform: none;
}

.admin-mfa-page #adminMfaResendButton:disabled i {
    color: var(--admin-auth-red);
}


/* If the existing JS adds a loading class, keep the text shown
   and rotate only the refresh icon. */

.admin-mfa-page #adminMfaResendButton.is-loading {
    color: #8995A8;
}

.admin-mfa-page #adminMfaResendButton.is-loading i {
    color: var(--admin-auth-red);

    animation: adminAuthSpin 780ms linear infinite !important;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 460px) {
    .admin-mfa-page .admin-mfa-code-row {
        gap: 8px;
    }

    .admin-mfa-page #mfaExpiryHint {
        font-size: 0.62rem;
    }

    .admin-mfa-page #adminMfaResendButton {
        min-height: 36px;

        padding-left: 11px;
        padding-right: 11px;

        font-size: 0.64rem;
    }

    .admin-mfa-page .login-message {
        min-height: 54px;

        padding: 11px 12px;

        font-size: 0.66rem;
    }
}
