/* ==========================================================
   EXLABESA CORE - AUTHENTICATION STYLES
   Applies to: login.php, register.php and future auth pages
   ========================================================== */

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

body.auth-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-family-base);
    color: var(--text-primary);
    background-color: var(--auth-bg) !important;
    background-image:
        linear-gradient(90deg, rgba(var(--auth-bg-rgb), 0.08), rgba(var(--auth-bg-rgb), 0.16)),
        var(--auth-background-image) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

body.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 34%, rgba(var(--surface-card-bg-rgb), 0.42), rgba(var(--surface-card-bg-rgb), 0.08) 48%, rgba(var(--surface-card-bg-rgb), 0.18) 100%),
        linear-gradient(90deg, rgba(var(--surface-card-bg-rgb), 0.14), rgba(var(--surface-card-bg-rgb), 0.28) 55%, rgba(var(--surface-card-bg-rgb), 0.44));
}


.auth-page,
.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.auth-shell {
    width: 100%;
    padding: 72px 24px 34px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(92vw, 620px);
    margin: 0 auto;
    overflow: hidden;
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-card-border);
    border-radius: 26px;
    box-shadow: var(--auth-card-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-card__brand {
    padding: 58px 62px 0;
    text-align: center;
}

.auth-logo {
    display: block;
    width: min(100%, 430px);
    max-height: 102px;
    margin: 0 auto;
    object-fit: contain;
}

.auth-brand-divider {
    display: block;
    width: 68px;
    height: 2px;
    margin: 22px auto 18px;
    background: var(--auth-product-color);
    opacity: 0.72;
}

.auth-product-name {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.46em;
    color: var(--auth-product-color);
}

.auth-beta-badge {
    width: max-content;
    margin: 18px auto 0;
    padding: 7px 20px 8px;
    border: 1px solid var(--auth-badge-border);
    border-radius: 8px;
    color: var(--auth-badge-text);
    background: var(--auth-badge-bg);
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.auth-card__content {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 36px 62px 46px;
    box-sizing: border-box;
    text-align: center;
}

.auth-card__content h1 {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.auth-subtitle {
    margin: 0 0 34px;
    font-size: 17px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.auth-form {
    width: 100%;
}

.auth-field {
    margin: 0 0 18px;
    text-align: left;
}

.auth-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon,
.auth-password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1;
}

.auth-input-icon {
    left: 22px;
}

.auth-password-toggle {
    right: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.auth-password-toggle:hover {
    color: var(--text-primary);
}

.form-control,
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    height: 62px;
    padding: 0 58px;
    box-sizing: border-box;
    color: var(--text-primary);
    background: rgba(var(--surface-card-bg-rgb), 0.66);
    border: 1px solid rgba(var(--border-strong-rgb), 0.54);
    border-radius: 9px;
    outline: none;
    font-size: 17px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.form-control::placeholder,
input::placeholder {
    color: var(--auth-input-placeholder);
}

.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    background: var(--surface-card-bg);
    border-color: var(--text-muted);
    box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb), 0.15);
}

.has-error .form-control,
.has-error input {
    border-color: var(--state-error);
}

.help-block {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--state-error);
}

.auth-submit {
    width: 100%;
    height: 62px;
    margin-top: 4px;
    border: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 120px;
    color: var(--surface-card-bg);
    background: linear-gradient(135deg, var(--text-primary), var(--text-primary));
    box-shadow: 0 12px 28px rgba(var(--text-primary-rgb), 0.18);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        filter 140ms ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 16px 34px rgba(var(--text-primary-rgb), 0.24);
}

.auth-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.auth-register {
    margin: 26px auto 0;
    font-size: 16px;
    line-height: 1.45;
    color: var(--text-primary);
    text-align: center;
}

.auth-register a {
    color: var(--auth-register-link);
    font-weight: 800;
    text-decoration: none;
}

.auth-register a:hover {
    text-decoration: underline;
}

.auth-card-footer {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(var(--brand-primary-rgb), 0.24);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: var(--text-primary);
}

.auth-card-footer-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    font-size: 20px;
}

.auth-card-footer strong,
.auth-card-footer small {
    display: block;
    text-align: left;
}

.auth-card-footer strong {
    font-size: 16px;
    font-weight: 800;
}

.auth-card-footer small {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-info {
    width: min(92vw, 780px);
    margin: 36px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    color: var(--text-primary);
}

.auth-info-item {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
}

.auth-info-item > span {
    width: 46px;
    min-width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--text-primary);
    font-size: 28px;
}

.auth-info-item strong,
.auth-info-item small {
    display: block;
    text-align: left;
}

.auth-info-item strong {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-primary);
}

.auth-info-item small {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.25;
    color: var(--text-secondary);
}

.auth-copyright {
    margin: 36px 0 0;
    font-size: 14px;
    color: var(--auth-input-placeholder);
    text-align: center;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-modal.is-open {
    display: flex;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(var(--text-primary-rgb), 0.20);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.auth-modal-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 460px);
    padding: 36px 38px 34px;
    box-sizing: border-box;
    border-radius: 18px;
    border: 1px solid rgba(var(--surface-card-bg-rgb), 0.70);
    background: rgba(var(--surface-card-bg-rgb), 0.95);
    box-shadow:
        0 30px 80px rgba(var(--text-primary-rgb), 0.28),
        0 8px 22px rgba(var(--text-primary-rgb), 0.12);
    text-align: center;
}

.auth-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    font-size: 22px;
}

.auth-modal-close:hover {
    background: var(--surface-card-hover);
}

.auth-modal-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border: 4px solid var(--brand-accent);
    border-radius: 50%;
    color: var(--brand-accent);
    font-size: 44px;
    line-height: 1;
    font-weight: 900;
}

.auth-modal-panel h2 {
    margin: 0 auto 16px;
    max-width: 340px;
    color: var(--text-primary);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.auth-modal-message {
    margin: 0 auto 28px;
    max-width: 360px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.45;
}

.auth-modal-actions {
    padding-top: 24px;
    border-top: 1px solid rgba(var(--brand-primary-rgb), 0.24);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-modal-button {
    min-height: 58px;
    border-radius: 9px;
    border: 1px solid rgba(var(--border-strong-rgb), 0.52);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    color: var(--text-primary);
    background: var(--surface-card-bg);
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.auth-modal-button-primary {
    border-color: transparent;
    color: var(--surface-card-bg);
    background: linear-gradient(135deg, var(--text-primary), var(--text-primary));
}

.auth-modal-button-secondary:hover {
    background: var(--surface-card-subtle);
}

/* Compatibility with old login/register markup during migration. */
.container,
.column,
.left-column,
.right-column,
.signup-box,
.logo-box,
.form-wrapper {
    box-sizing: border-box;
}

@media (max-width: 760px) {
    body.auth-body {
        background-position: 22% center !important;
    }

    .auth-shell {
        padding: 84px 16px 34px;
    }

    .auth-card {
        width: 100%;
        max-width: 440px;
        border-radius: 22px;
    }

    .auth-card__brand {
        padding: 42px 30px 0;
    }

    .auth-logo {
        max-width: 300px;
    }

    .auth-product-name {
        font-size: 12px;
        letter-spacing: 0.38em;
    }

    .auth-beta-badge {
        font-size: 13px;
        padding: 7px 16px;
    }

    .auth-card__content {
        padding: 32px 30px 38px;
    }

    .auth-card__content h1 {
        font-size: 30px;
    }

    .auth-subtitle {
        font-size: 15px;
    }

    .form-control,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    .auth-submit {
        height: 56px;
        font-size: 15px;
    }

    .auth-submit {
        gap: 72px;
    }

    .auth-register {
        font-size: 14px;
    }

    .auth-card-footer {
        align-items: center;
    }

    .auth-card-footer small {
        font-size: 13px;
    }

    .auth-info {
        width: 100%;
        max-width: 300px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .auth-info-item {
        justify-content: flex-start;
    }

    .auth-modal-panel {
        padding: 34px 24px 28px;
    }

    .auth-modal-actions {
        grid-template-columns: 1fr;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .auth-card,
    .auth-modal-panel {
        background: rgba(var(--surface-card-bg-rgb), 0.96);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .auth-card,
    .auth-modal-panel {
        background: var(--surface-card-bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ==========================================================
   LOGIN V3 OVERRIDES
   These are deliberately specific because app-styles.css is also loaded.
   ========================================================== */
html body.auth-body {
    background-color: var(--auth-bg) !important;
    background-image:
        radial-gradient(circle at 52% 38%, rgba(var(--surface-card-bg-rgb), 0.58), rgba(var(--surface-card-bg-rgb), 0.12) 48%, rgba(var(--surface-card-bg-rgb), 0.22) 100%),
        linear-gradient(90deg, rgba(var(--surface-card-bg-rgb), 0.08), rgba(var(--surface-card-bg-rgb), 0.28) 54%, rgba(var(--surface-card-bg-rgb), 0.42)),
        var(--auth-background-image) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

html body.auth-body::before {
    display: none !important;
}

body.auth-body .auth-shell {
    padding-top: 54px !important;
}

body.auth-body .auth-card {
    width: min(92vw, 620px) !important;
    border-radius: 26px !important;
    background: rgba(var(--surface-card-bg-rgb), 0.93) !important;
    box-shadow: 0 34px 92px rgba(var(--text-primary-rgb), .20), 0 10px 30px rgba(var(--text-primary-rgb), .10) !important;
}

body.auth-body .auth-card__brand p.auth-beta-badge,
body.auth-body p.auth-beta-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 86px !important;
    margin: 18px auto 0 !important;
    padding: 8px 20px 9px !important;
    border: 1px solid var(--auth-badge-border) !important;
    border-radius: 8px !important;
    color: var(--auth-badge-text) !important;
    background: var(--auth-badge-bg) !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
}

body.auth-body .form-control,
body.auth-body input[type="text"],
body.auth-body input[type="password"] {
    height: 62px !important;
    padding-left: 58px !important;
    padding-right: 58px !important;
    font-size: 17px !important;
    border-radius: 9px !important;
}

body.auth-body .auth-submit {
    height: 62px !important;
    border-radius: 9px !important;
    background: var(--auth-submit-bg) !important;
}

body.auth-body .auth-register a {
    color: var(--auth-register-link) !important;
}


/* ==========================================================
   LOGIN V4 REFINEMENTS
   Softer typography, corrected flag buttons, cleaner button
   ========================================================== */

body.auth-body {
    color: var(--text-primary) !important;
}

body.auth-body .auth-card__content h1 {
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.035em !important;
}

body.auth-body .auth-subtitle {
    color: var(--text-secondary) !important;
    font-weight: 400 !important;
}

body.auth-body .auth-product-name {
    color: var(--auth-product-color) !important;
    font-weight: 700 !important;
}

body.auth-body .auth-beta-badge {
    color: var(--auth-badge-text) !important;
    background: var(--auth-badge-bg) !important;
    border: 1px solid var(--auth-badge-border) !important;
    box-shadow: none !important;
}

body.auth-body .auth-input-icon,
body.auth-body .auth-password-toggle {
    color: var(--auth-input-placeholder) !important;
}

body.auth-body .form-control,
body.auth-body input[type="text"],
body.auth-body input[type="password"],
body.auth-body input[type="email"] {
    color: var(--text-secondary) !important;
    border-color: rgba(var(--border-strong-rgb), 0.42) !important;
    box-shadow: none !important;
}

body.auth-body .form-control::placeholder,
body.auth-body input::placeholder {
    color: var(--auth-input-placeholder) !important;
}

body.auth-body .auth-submit {
    justify-content: space-between !important;
    gap: 0 !important;
    padding: 0 28px !important;
    color: var(--auth-submit-text) !important;
    background: var(--auth-submit-bg) !important;
    box-shadow: 0 14px 28px rgba(var(--text-primary-rgb), 0.14) !important;
    font-weight: 700 !important;
}

body.auth-body .auth-submit:hover {
    background: var(--auth-submit-hover-bg) !important;
}

body.auth-body .auth-card-footer strong,
body.auth-body .auth-info-item strong {
    color: var(--text-secondary) !important;
    font-weight: 700 !important;
}

body.auth-body .auth-card-footer small,
body.auth-body .auth-info-item small,
body.auth-body .auth-copyright {
    color: var(--text-muted) !important;
}

body.auth-body .auth-info-item > span,
body.auth-body .auth-card-footer-icon {
    color: var(--text-secondary) !important;
}

/* Flag switcher fix.
   The PHP module outputs empty buttons, so these pseudo-elements provide the visible flags. */

@media (max-width: 760px) {
    

    body.auth-body .auth-submit {
        padding: 0 22px !important;
    }
}


/* ==========================================================
   REGISTER / BETA ACCESS PAGE
   ========================================================== */
.auth-page--register .auth-card {
    width: min(92vw, 660px) !important;
}

.auth-page--register .auth-card__content {
    max-width: 500px !important;
}

.auth-register-step-note {
    margin: -12px 0 26px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.auth-alert {
    margin: 0 0 22px;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
}

.auth-alert--error {
    color: var(--state-error-text);
    background: rgba(var(--state-error-bg-rgb), 0.72);
    border: 1px solid rgba(var(--state-error-border-rgb), 0.38);
}

.auth-alert--info {
    color: var(--text-secondary);
    background: rgba(var(--state-info-bg-rgb), 0.72);
    border: 1px solid rgba(var(--state-info-border-rgb), 0.40);
}

.auth-alert h2,
.auth-alert h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.auth-alert p {
    margin: 0;
}

.auth-register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-register-grid .auth-field {
    margin-bottom: 0;
}

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

body.auth-body select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--auth-input-placeholder) 50%),
        linear-gradient(135deg, var(--auth-input-placeholder) 50%, transparent 50%);
    background-position:
        calc(100% - 24px) 50%,
        calc(100% - 18px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.auth-register-form-actions {
    margin-top: 22px;
}

.auth-blocked-panel {
    margin-top: 12px;
    padding: 22px;
    border: 1px solid rgba(var(--brand-accent-rgb), 0.35);
    border-radius: 16px;
    background: rgba(var(--state-warning-bg-rgb), 0.58);
    text-align: center;
}

.auth-blocked-panel .auth-blocked-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--brand-accent);
    border: 2px solid var(--brand-accent);
    font-size: 24px;
}

.auth-blocked-panel h2 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 750;
}

.auth-blocked-panel p {
    margin: 0 auto 18px;
    max-width: 370px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.auth-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 9px;
    color: var(--surface-card-bg);
    background: var(--button-primary-bg);
    text-decoration: none;
    font-weight: 700;
}

.auth-terms-note {
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

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


/* ==========================================================
   REGISTER V4 REFINEMENTS
   Wider account form, clearer department/language guidance
   ========================================================== */

body.auth-body .auth-card.auth-card--register {
    width: min(94vw, 760px) !important;
}

body.auth-body .auth-card.auth-card--register .auth-card__content {
    max-width: 560px !important;
}

body.auth-body .auth-page--register .auth-register-step-note {
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: var(--text-secondary) !important;
    line-height: 1.45 !important;
}

body.auth-body .auth-register-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

body.auth-body .auth-register-grid .auth-field-full {
    grid-column: 1 / -1 !important;
}

body.auth-body .auth-field-hint {
    display: block !important;
    margin: 8px 2px 0 !important;
    color: var(--text-muted) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
}

body.auth-body .auth-page--register .auth-field label:not([for="beta_code"]) {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 7px !important;
    overflow: visible !important;
    clip: auto !important;
    display: block !important;
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body.auth-body .auth-page--register .auth-input-wrap {
    margin-top: 0 !important;
}

body.auth-body .auth-page--register select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
}

@media (max-width: 760px) {
    body.auth-body .auth-card.auth-card--register {
        width: 100% !important;
        max-width: 520px !important;
    }

    body.auth-body .auth-register-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================
   REGISTER V5 COMPACT VIEW
   Keeps registration visible in one view.
   ========================================================== */

body.auth-body .auth-card.auth-card--register {
    width: min(94vw, 740px) !important;
}

body.auth-body .auth-card.auth-card--register .auth-card__brand {
    padding-top: 36px !important;
}

body.auth-body .auth-card.auth-card--register .auth-logo {
    max-height: 82px !important;
    width: min(100%, 360px) !important;
}

body.auth-body .auth-card.auth-card--register .auth-brand-divider {
    margin-top: 16px !important;
    margin-bottom: 14px !important;
}

body.auth-body .auth-card.auth-card--register .auth-beta-badge {
    margin-top: 14px !important;
}

body.auth-body .auth-card.auth-card--register .auth-card__content {
    max-width: 560px !important;
    padding-top: 26px !important;
    padding-bottom: 34px !important;
}

body.auth-body .auth-card.auth-card--register .auth-card__content h1 {
    margin-bottom: 8px !important;
    font-size: 32px !important;
}

body.auth-body .auth-card.auth-card--register .auth-subtitle {
    margin-bottom: 22px !important;
    font-size: 15px !important;
}

body.auth-body .auth-card.auth-card--register .auth-field {
    margin-bottom: 13px !important;
}

body.auth-body .auth-card.auth-card--register .form-control,
body.auth-body .auth-card.auth-card--register input[type="text"],
body.auth-body .auth-card.auth-card--register input[type="password"],
body.auth-body .auth-card.auth-card--register input[type="email"],
body.auth-body .auth-card.auth-card--register select {
    height: 54px !important;
    font-size: 15px !important;
}

body.auth-body .auth-card.auth-card--register .auth-submit {
    height: 56px !important;
    margin-top: 4px !important;
}

body.auth-body .auth-card.auth-card--register .auth-register {
    margin-top: 20px !important;
}

body.auth-body .auth-card.auth-card--register .auth-card-footer {
    margin-top: 26px !important;
    padding-top: 22px !important;
}

body.auth-body .auth-card.auth-card--register .auth-field-hint,
body.auth-body .auth-card.auth-card--register .auth-terms-note {
    display: none !important;
}


/* ==========================================================
   REGISTER V6 AD BLOCK MODAL
   Replaces inline AD warning panel with modal behaviour.
   ========================================================== */

body.auth-body .auth-blocked-panel {
    display: none !important;
}

body.auth-body .auth-page--register .auth-modal-icon {
    border-color: var(--brand-accent) !important;
    color: var(--brand-accent) !important;
    background: rgba(var(--state-warning-bg-rgb), 0.72) !important;
}

body.auth-body .auth-page--register .auth-modal-panel h2 {
    font-weight: 800 !important;
}

body.auth-body .auth-page--register .auth-modal-message {
    max-width: 350px !important;
}

/* ==========================================================
   AUTH V7 DESKTOP FIT PASS
   Purpose: keep login/register visible without scrolling on
   normal desktop and laptop viewports while preserving the
   existing premium auth design.
   ========================================================== */

html body.auth-body,
html body.auth-body .auth-page,
html body.auth-body .auth-shell {
    min-height: 100svh !important;
}

body.auth-body .auth-shell {
    padding: clamp(40px, 4.2vh, 58px) 24px clamp(18px, 2.4vh, 30px) !important;
    justify-content: center !important;
}

body.auth-body .auth-card {
    width: min(92vw, 560px) !important;
    border-radius: 24px !important;
}

body.auth-body .auth-card__brand {
    padding: clamp(34px, 3.4vh, 46px) 52px 0 !important;
}

body.auth-body .auth-logo {
    width: min(100%, 360px) !important;
    max-height: 84px !important;
}

body.auth-body .auth-brand-divider {
    width: 62px !important;
    margin: 16px auto 14px !important;
}

body.auth-body .auth-product-name {
    font-size: 13px !important;
    letter-spacing: 0.42em !important;
}

body.auth-body .auth-card__brand p.auth-beta-badge,
body.auth-body p.auth-beta-badge,
body.auth-body .auth-beta-badge {
    min-width: 78px !important;
    margin-top: 14px !important;
    padding: 7px 17px 8px !important;
    font-size: 13px !important;
    letter-spacing: 0.20em !important;
}

body.auth-body .auth-card__content {
    max-width: 410px !important;
    padding: 26px 52px 34px !important;
}

body.auth-body .auth-card__content h1 {
    margin-bottom: 8px !important;
    font-size: 30px !important;
    line-height: 1.08 !important;
}

body.auth-body .auth-subtitle {
    margin-bottom: 24px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}

body.auth-body .auth-field {
    margin-bottom: 14px !important;
}

body.auth-body .form-control,
body.auth-body input[type="text"],
body.auth-body input[type="password"],
body.auth-body input[type="email"],
body.auth-body select.form-control {
    height: 54px !important;
    padding-left: 52px !important;
    padding-right: 52px !important;
    font-size: 15px !important;
}

body.auth-body .auth-input-icon {
    left: 20px !important;
    font-size: 16px !important;
}

body.auth-body .auth-password-toggle {
    right: 18px !important;
    font-size: 16px !important;
}

body.auth-body .auth-submit {
    height: 56px !important;
    padding: 0 26px !important;
    font-size: 16px !important;
}

body.auth-body .auth-register {
    margin-top: 20px !important;
    font-size: 14px !important;
}

body.auth-body .auth-card-footer {
    margin-top: 24px !important;
    padding-top: 20px !important;
    gap: 14px !important;
}

body.auth-body .auth-card-footer-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
}

body.auth-body .auth-card-footer strong {
    font-size: 15px !important;
}

body.auth-body .auth-card-footer small {
    font-size: 13px !important;
}

body.auth-body .auth-info {
    width: min(92vw, 720px) !important;
    margin-top: 24px !important;
    gap: 26px !important;
}

body.auth-body .auth-info-item {
    gap: 14px !important;
}

body.auth-body .auth-info-item > span {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    font-size: 23px !important;
}

body.auth-body .auth-info-item strong {
    font-size: 14px !important;
}

body.auth-body .auth-info-item small {
    font-size: 13px !important;
}

body.auth-body .auth-copyright {
    margin-top: 22px !important;
    font-size: 13px !important;
}

body.auth-body .auth-card.auth-card--register {
    width: min(94vw, 720px) !important;
}

body.auth-body .auth-card.auth-card--register .auth-card__brand {
    padding-top: 28px !important;
}

body.auth-body .auth-card.auth-card--register .auth-logo {
    width: min(100%, 320px) !important;
    max-height: 72px !important;
}

body.auth-body .auth-card.auth-card--register .auth-card__content {
    max-width: 560px !important;
    padding: 22px 46px 28px !important;
}

body.auth-body .auth-card.auth-card--register .auth-card__content h1 {
    font-size: 28px !important;
}

body.auth-body .auth-card.auth-card--register .auth-subtitle {
    margin-bottom: 18px !important;
}

body.auth-body .auth-register-grid {
    gap: 12px !important;
}

body.auth-body .auth-page--register .auth-field label:not([for="beta_code"]) {
    margin-bottom: 5px !important;
    font-size: 12px !important;
}

body.auth-body .auth-card.auth-card--register .auth-field {
    margin-bottom: 10px !important;
}

body.auth-body .auth-card.auth-card--register .form-control,
body.auth-body .auth-card.auth-card--register input[type="text"],
body.auth-body .auth-card.auth-card--register input[type="password"],
body.auth-body .auth-card.auth-card--register input[type="email"],
body.auth-body .auth-card.auth-card--register select {
    height: 50px !important;
}

body.auth-body .auth-card.auth-card--register .auth-register-form-actions {
    margin-top: 14px !important;
}

body.auth-body .auth-card.auth-card--register .auth-submit {
    height: 52px !important;
}

body.auth-body .auth-card.auth-card--register .auth-register {
    margin-top: 16px !important;
}

body.auth-body .auth-card.auth-card--register .auth-card-footer {
    margin-top: 20px !important;
    padding-top: 18px !important;
}

@media (min-width: 761px) and (max-height: 980px) {
    body.auth-body .auth-shell {
        padding-top: 34px !important;
        padding-bottom: 18px !important;
    }

    body.auth-body .auth-card {
        width: min(92vw, 520px) !important;
    }

    body.auth-body .auth-card__brand {
        padding-top: 28px !important;
    }

    body.auth-body .auth-logo {
        width: min(100%, 320px) !important;
        max-height: 72px !important;
    }

    body.auth-body .auth-brand-divider {
        margin-top: 13px !important;
        margin-bottom: 11px !important;
    }

    body.auth-body .auth-beta-badge {
        margin-top: 11px !important;
    }

    body.auth-body .auth-card__content {
        padding-top: 22px !important;
        padding-bottom: 28px !important;
    }

    body.auth-body .auth-card__content h1 {
        font-size: 28px !important;
    }

    body.auth-body .auth-subtitle {
        margin-bottom: 18px !important;
    }

    body.auth-body .form-control,
    body.auth-body input[type="text"],
    body.auth-body input[type="password"],
    body.auth-body input[type="email"],
    body.auth-body select.form-control {
        height: 50px !important;
    }

    body.auth-body .auth-submit {
        height: 52px !important;
    }

    body.auth-body .auth-register {
        margin-top: 16px !important;
    }

    body.auth-body .auth-card-footer {
        margin-top: 18px !important;
        padding-top: 16px !important;
    }

    body.auth-body .auth-info {
        margin-top: 18px !important;
    }

    body.auth-body .auth-copyright {
        margin-top: 16px !important;
    }
}

@media (min-width: 761px) and (max-height: 820px) {
    body.auth-body .auth-info,
    body.auth-body .auth-copyright {
        display: none !important;
    }

    body.auth-body .auth-card-footer {
        margin-top: 16px !important;
    }
}

@media (max-width: 760px) {
    body.auth-body .auth-shell {
        padding: 78px 16px 28px !important;
        justify-content: flex-start !important;
    }

    body.auth-body .auth-card,
    body.auth-body .auth-card.auth-card--register {
        width: 100% !important;
        max-width: 440px !important;
    }

    body.auth-body .auth-card__brand,
    body.auth-body .auth-card.auth-card--register .auth-card__brand {
        padding: 34px 28px 0 !important;
    }

    body.auth-body .auth-card__content,
    body.auth-body .auth-card.auth-card--register .auth-card__content {
        padding: 28px 28px 34px !important;
    }

    body.auth-body .auth-info {
        margin-top: 22px !important;
    }
}



/* ==========================================================
   AUTH V8 REGISTER FIT + CONDITIONAL BETA BADGE PASS
   Final pass for desktop auth screens.
   - Keeps login/register closer to one-view height.
   - Register uses tighter brand/content spacing and smaller controls.
   - The beta badge is now rendered only by PHP when platform_status is Beta.
   ========================================================== */

body.auth-body .auth-shell {
    padding-top: clamp(26px, 3vh, 42px) !important;
    padding-bottom: clamp(14px, 1.8vh, 24px) !important;
}

body.auth-body .auth-card__brand {
    padding-top: clamp(26px, 3vh, 38px) !important;
}

body.auth-body .auth-logo {
    width: min(100%, 330px) !important;
    max-height: 76px !important;
}

body.auth-body .auth-brand-divider {
    margin-top: 12px !important;
    margin-bottom: 10px !important;
}

body.auth-body .auth-product-name {
    font-size: 12px !important;
    letter-spacing: 0.40em !important;
}

body.auth-body .auth-card__content {
    padding-top: 20px !important;
    padding-bottom: 26px !important;
}

body.auth-body .auth-card__content h1 {
    font-size: 28px !important;
    margin-bottom: 7px !important;
}

body.auth-body .auth-subtitle {
    margin-bottom: 18px !important;
}

body.auth-body .auth-card.auth-card--register {
    width: min(94vw, 720px) !important;
    border-radius: 22px !important;
}

body.auth-body .auth-card.auth-card--register .auth-card__brand {
    padding: 20px 44px 0 !important;
}

body.auth-body .auth-card.auth-card--register .auth-logo {
    width: min(100%, 300px) !important;
    max-height: 62px !important;
}

body.auth-body .auth-card.auth-card--register .auth-brand-divider {
    width: 54px !important;
    margin: 9px auto 8px !important;
}

body.auth-body .auth-card.auth-card--register .auth-product-name {
    font-size: 11px !important;
    letter-spacing: 0.36em !important;
}

body.auth-body .auth-card.auth-card--register .auth-beta-badge {
    margin-top: 8px !important;
    padding: 6px 14px 7px !important;
    font-size: 11px !important;
    letter-spacing: 0.18em !important;
}

body.auth-body .auth-card.auth-card--register .auth-card__content {
    max-width: 570px !important;
    padding: 14px 42px 22px !important;
}

body.auth-body .auth-card.auth-card--register .auth-card__content h1 {
    font-size: 24px !important;
    margin-bottom: 5px !important;
}

body.auth-body .auth-card.auth-card--register .auth-subtitle {
    margin-bottom: 12px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
}

body.auth-body .auth-card.auth-card--register .auth-register-grid {
    gap: 9px 12px !important;
}

body.auth-body .auth-card.auth-card--register .auth-field {
    margin-bottom: 0 !important;
}

body.auth-body .auth-page--register .auth-field label:not([for="beta_code"]) {
    margin-bottom: 4px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
}

body.auth-body .auth-card.auth-card--register .form-control,
body.auth-body .auth-card.auth-card--register input[type="text"],
body.auth-body .auth-card.auth-card--register input[type="password"],
body.auth-body .auth-card.auth-card--register input[type="email"],
body.auth-body .auth-card.auth-card--register select.form-control {
    height: 44px !important;
    padding-left: 42px !important;
    padding-right: 42px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

body.auth-body .auth-card.auth-card--register .auth-input-icon {
    left: 16px !important;
    font-size: 14px !important;
}

body.auth-body .auth-card.auth-card--register .auth-password-toggle {
    right: 16px !important;
    font-size: 14px !important;
}

body.auth-body .auth-card.auth-card--register .auth-register-form-actions {
    margin-top: 12px !important;
}

body.auth-body .auth-card.auth-card--register .auth-submit {
    height: 46px !important;
    padding: 0 22px !important;
    font-size: 14px !important;
}

body.auth-body .auth-card.auth-card--register .auth-register {
    margin-top: 12px !important;
    font-size: 13px !important;
}

body.auth-body .auth-card.auth-card--register .auth-card-footer {
    margin-top: 14px !important;
    padding-top: 12px !important;
}

body.auth-body .auth-card.auth-card--register .auth-card-footer-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
}

body.auth-body .auth-card.auth-card--register .auth-card-footer strong {
    font-size: 13px !important;
}

body.auth-body .auth-card.auth-card--register .auth-card-footer small {
    font-size: 12px !important;
}

body.auth-body .auth-page--register .auth-info,
body.auth-body .auth-page--register .auth-copyright {
    display: none !important;
}

body.auth-body .auth-page--register .auth-register-step-note {
    margin: -4px auto 14px !important;
    font-size: 13px !important;
}

@media (min-width: 761px) and (max-height: 900px) {
    body.auth-body .auth-info,
    body.auth-body .auth-copyright {
        display: none !important;
    }

    body.auth-body .auth-card-footer {
        margin-top: 14px !important;
        padding-top: 12px !important;
    }
}

@media (max-width: 760px) {
    body.auth-body .auth-shell {
        padding-top: 72px !important;
        justify-content: flex-start !important;
    }

    body.auth-body .auth-card.auth-card--register .auth-card__brand {
        padding: 28px 26px 0 !important;
    }

    body.auth-body .auth-card.auth-card--register .auth-card__content {
        padding: 24px 24px 30px !important;
    }

    body.auth-body .auth-card.auth-card--register .auth-register-grid {
        grid-template-columns: 1fr !important;
    }

    body.auth-body .auth-card.auth-card--register .form-control,
    body.auth-body .auth-card.auth-card--register input[type="text"],
    body.auth-body .auth-card.auth-card--register input[type="password"],
    body.auth-body .auth-card.auth-card--register input[type="email"],
    body.auth-body .auth-card.auth-card--register select.form-control {
        height: 50px !important;
        font-size: 15px !important;
    }

    body.auth-body .auth-page--register .auth-info,
    body.auth-body .auth-page--register .auth-copyright {
        display: block !important;
    }
}


/* ==========================================================
   EXLABESA CORE - AUTH SOFT PAGE TRANSITIONS
   Subtle by design: only auth window elements gently settle in.
   ========================================================== */

body.auth-body .auth-card {
    animation: authCardQuietIn 260ms ease-out both;
    transform-origin: center center;
}

body.auth-body .auth-info,
body.auth-body .auth-copyright {
    animation: authFooterQuietIn 240ms ease-out 35ms both;
}

body.auth-body.auth-is-leaving .auth-card,
body.auth-body.auth-is-leaving .auth-info,
body.auth-body.auth-is-leaving .auth-copyright {
    animation: none !important;
    opacity: 0.96;
    transform: translateY(-2px);
    transition:
        opacity 90ms ease,
        transform 90ms ease;
}

@keyframes authCardQuietIn {
    from {
        opacity: 0.96;
        transform: translateY(4px) scale(0.998);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes authFooterQuietIn {
    from {
        opacity: 0.92;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal--success .auth-modal-icon-success {
    border-color: var(--state-success-text);
    color: var(--state-success-text);
    background: rgba(var(--state-success-bg-rgb), 0.82);
}

.auth-modal-actions-single {
    grid-template-columns: 1fr;
}

@media (prefers-reduced-motion: reduce) {
    body.auth-body .auth-card,
    body.auth-body .auth-info,
    body.auth-body .auth-copyright {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================
   EXLABESA CORE - AUTH BRAND CONSISTENCY + FINAL POLISH
   Keeps the login and register brand area visually identical.
   ========================================================== */

body.auth-body .auth-product-name {
    text-transform: uppercase !important;
}

body.auth-body .auth-card.auth-card--register .auth-card__brand {
    padding-top: clamp(26px, 3vh, 38px) !important;
}

body.auth-body .auth-card.auth-card--register .auth-logo {
    width: min(100%, 330px) !important;
    max-height: 76px !important;
}

body.auth-body .auth-card.auth-card--register .auth-brand-divider {
    width: 68px !important;
    margin-top: 12px !important;
    margin-bottom: 10px !important;
}

body.auth-body .auth-card.auth-card--register .auth-product-name {
    font-size: 12px !important;
    letter-spacing: 0.40em !important;
    line-height: 1.1 !important;
}

body.auth-body .auth-card.auth-card--register .auth-beta-badge {
    margin-top: 12px !important;
}

@media (max-width: 760px) {
    body.auth-body .auth-card.auth-card--register .auth-logo {
        width: min(100%, 300px) !important;
        max-height: 68px !important;
    }
}

/* ==========================================================
   EXLABESA CORE - AUTH SHARED COMPONENT CONSISTENCY PASS
   Keeps login/register shared elements identical.
   Shared elements: brand text, primary button, register/login link,
   internal-use footer, auth info footer, copyright, and mobile stacking.
   ========================================================== */

body.auth-body .auth-product-name,
body.auth-body .auth-card.auth-card--register .auth-product-name {
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    letter-spacing: 0.40em !important;
    color: var(--auth-product-color) !important;
    text-transform: uppercase !important;
}

body.auth-body .auth-submit,
body.auth-body .auth-card.auth-card--register .auth-submit {
    width: 100% !important;
    height: 56px !important;
    margin-top: 4px !important;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    color: var(--auth-submit-text) !important;
    background: var(--auth-submit-bg) !important;
    box-shadow: 0 14px 28px rgba(var(--text-primary-rgb), 0.14) !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

body.auth-body .auth-submit:hover,
body.auth-body .auth-card.auth-card--register .auth-submit:hover {
    background: var(--auth-submit-hover-bg) !important;
    box-shadow: 0 16px 32px rgba(var(--text-primary-rgb), 0.18) !important;
    transform: translateY(-1px) !important;
}

body.auth-body .auth-submit:active,
body.auth-body .auth-card.auth-card--register .auth-submit:active {
    transform: translateY(0) !important;
    box-shadow: 0 8px 18px rgba(var(--text-primary-rgb), 0.12) !important;
}

body.auth-body .auth-register,
body.auth-body .auth-card.auth-card--register .auth-register {
    margin: 20px auto 0 !important;
    color: var(--text-secondary) !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}

body.auth-body .auth-register a,
body.auth-body .auth-card.auth-card--register .auth-register a {
    color: var(--brand-accent) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

body.auth-body .auth-register a:hover,
body.auth-body .auth-card.auth-card--register .auth-register a:hover {
    text-decoration: underline !important;
}

body.auth-body .auth-card-footer,
body.auth-body .auth-card.auth-card--register .auth-card-footer {
    margin-top: 24px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(var(--brand-primary-rgb), 0.24) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    color: var(--text-secondary) !important;
}

body.auth-body .auth-card-footer-icon,
body.auth-body .auth-card.auth-card--register .auth-card-footer-icon {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    display: grid !important;
    place-items: center !important;
    border: 2px solid var(--text-secondary) !important;
    border-radius: 50% !important;
    color: var(--text-secondary) !important;
    font-size: 18px !important;
}

body.auth-body .auth-card-footer strong,
body.auth-body .auth-card.auth-card--register .auth-card-footer strong {
    display: block !important;
    color: var(--text-secondary) !important;
    text-align: left !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

body.auth-body .auth-card-footer small,
body.auth-body .auth-card.auth-card--register .auth-card-footer small {
    display: block !important;
    margin-top: 4px !important;
    color: var(--text-muted) !important;
    text-align: left !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
}

body.auth-body .auth-info,
body.auth-body .auth-page--register .auth-info {
    width: min(92vw, 720px) !important;
    max-width: 720px !important;
    margin: 24px auto 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 26px !important;
    color: var(--text-secondary) !important;
}

body.auth-body .auth-info-item,
body.auth-body .auth-page--register .auth-info-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
}

body.auth-body .auth-info-item > span,
body.auth-body .auth-page--register .auth-info-item > span {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    display: grid !important;
    place-items: center !important;
    color: var(--text-secondary) !important;
    font-size: 23px !important;
}

body.auth-body .auth-info-item strong,
body.auth-body .auth-page--register .auth-info-item strong {
    display: block !important;
    color: var(--text-secondary) !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

body.auth-body .auth-info-item small,
body.auth-body .auth-page--register .auth-info-item small {
    display: block !important;
    margin-top: 5px !important;
    color: var(--text-muted) !important;
    text-align: left !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
}

body.auth-body .auth-copyright,
body.auth-body .auth-page--register .auth-copyright {
    display: block !important;
    margin: 22px 0 0 !important;
    color: var(--text-muted) !important;
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

@media (max-width: 760px) {
    body.auth-body .auth-submit,
    body.auth-body .auth-card.auth-card--register .auth-submit {
        height: 56px !important;
        padding: 0 22px !important;
        font-size: 16px !important;
    }

    body.auth-body .auth-card-footer,
    body.auth-body .auth-card.auth-card--register .auth-card-footer {
        margin-top: 24px !important;
        padding-top: 20px !important;
        justify-content: center !important;
    }

    body.auth-body .auth-card-footer-icon,
    body.auth-body .auth-card.auth-card--register .auth-card-footer-icon {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        font-size: 18px !important;
    }

    body.auth-body .auth-card-footer strong,
    body.auth-body .auth-card.auth-card--register .auth-card-footer strong {
        font-size: 15px !important;
    }

    body.auth-body .auth-card-footer small,
    body.auth-body .auth-card.auth-card--register .auth-card-footer small {
        font-size: 13px !important;
    }

    body.auth-body .auth-info,
    body.auth-body .auth-page--register .auth-info {
        width: 100% !important;
        max-width: 300px !important;
        margin-top: 22px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 26px !important;
    }

    body.auth-body .auth-info-item,
    body.auth-body .auth-page--register .auth-info-item {
        justify-content: flex-start !important;
        gap: 14px !important;
    }

    body.auth-body .auth-info-item > span,
    body.auth-body .auth-page--register .auth-info-item > span {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        font-size: 23px !important;
    }
}

/* ==========================================================
   EXLABESA CORE - AUTH DESKTOP FIT-TO-SCREEN OVERRIDE
   Purpose:
   - Desktop/tablet landscape auth pages should feel like one polished view.
   - Avoid vertical scrollbars on normal desktop resolutions by softly scaling
     the auth content to the viewport height.
   - Mobile remains natural scrolling.
   ========================================================== */

@media (min-width: 761px) {
    html,
    body.auth-body {
        height: 100%;
        overflow-y: hidden;
    }

    body.auth-body {
        --auth-fit-scale: 1;
        --auth-fit-width: 100%;
        --auth-fit-margin-left: 0;
        --auth-fit-height: 100vh;
    }

    body.auth-body .auth-page {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    body.auth-body .auth-shell {
        min-height: var(--auth-fit-height);
        width: var(--auth-fit-width);
        margin-left: var(--auth-fit-margin-left);
        transform: scale(var(--auth-fit-scale));
        transform-origin: top center;
        will-change: transform;
    }
}

@media (min-width: 761px) and (max-height: 980px) {
    body.auth-body {
        --auth-fit-scale: 0.96;
        --auth-fit-width: 104.17%;
        --auth-fit-margin-left: -2.085%;
        --auth-fit-height: 104.17vh;
    }
}

@media (min-width: 761px) and (max-height: 900px) {
    body.auth-body {
        --auth-fit-scale: 0.91;
        --auth-fit-width: 109.89%;
        --auth-fit-margin-left: -4.945%;
        --auth-fit-height: 109.89vh;
    }
}

@media (min-width: 761px) and (max-height: 820px) {
    body.auth-body {
        --auth-fit-scale: 0.86;
        --auth-fit-width: 116.28%;
        --auth-fit-margin-left: -8.14%;
        --auth-fit-height: 116.28vh;
    }
}

@media (min-width: 761px) and (max-height: 760px) {
    body.auth-body {
        --auth-fit-scale: 0.80;
        --auth-fit-width: 125%;
        --auth-fit-margin-left: -12.5%;
        --auth-fit-height: 125vh;
    }
}

@media (min-width: 761px) and (max-height: 700px) {
    body.auth-body {
        --auth-fit-scale: 0.74;
        --auth-fit-width: 135.14%;
        --auth-fit-margin-left: -17.57%;
        --auth-fit-height: 135.14vh;
    }
}

@media (min-width: 761px) and (max-height: 640px) {
    body.auth-body {
        --auth-fit-scale: 0.68;
        --auth-fit-width: 147.06%;
        --auth-fit-margin-left: -23.53%;
        --auth-fit-height: 147.06vh;
    }
}

@media (max-width: 760px) {
    html,
    body.auth-body {
        height: auto;
        overflow-y: auto;
    }

    body.auth-body .auth-page {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    body.auth-body .auth-shell {
        width: 100%;
        min-height: 100vh;
        margin-left: 0;
        transform: none;
        will-change: auto;
    }
}

/* ==========================================================
   Theme-token auth overrides
   ========================================================== */
body.auth-body {
    font-family: var(--font-family-base, "Montserrat", Arial, sans-serif);
    color: var(--text-primary);
    background-color: var(--auth-bg) !important;
}

.auth-card {
    background: var(--auth-card-bg);
    border-color: var(--auth-card-border);
    box-shadow: var(--auth-card-shadow, 0 18px 50px rgba(var(--text-primary-rgb), 0.14));
}

.auth-brand-divider {
    background: var(--brand-primary);
}

.auth-product-name {
    color: var(--auth-product-color);
    font-weight: var(--font-weight-semibold, 600);
}

.auth-beta-badge {
    color: var(--auth-badge-text);
    background: var(--auth-badge-bg);
    border-color: var(--auth-badge-border);
    font-weight: var(--font-weight-bold, 700);
}

.auth-card__content h1 {
    color: var(--auth-heading-color);
    font-family: var(--font-family-heading, var(--font-family-base, "Montserrat", Arial, sans-serif));
}

.auth-subtitle {
    color: var(--auth-subtitle-color);
}

.auth-input-icon,
.auth-password-toggle {
    color: var(--auth-input-icon);
}

.form-control,
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form select,
.auth-form textarea {
    color: var(--auth-input-text);
    background: var(--auth-input-bg);
    border-color: var(--auth-input-border);
    font-family: var(--font-family-base, "Montserrat", Arial, sans-serif);
}

.form-control::placeholder,
.auth-form input::placeholder {
    color: var(--auth-input-placeholder);
}

.form-control:focus,
.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="email"]:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    background: var(--auth-input-bg);
    border-color: var(--auth-input-focus-border);
    box-shadow: var(--auth-input-focus-shadow, 0 0 0 3px rgba(var(--brand-primary-rgb), 0.16));
}

.auth-submit {
    color: var(--auth-submit-text);
    background: var(--auth-submit-bg);
    box-shadow: var(--shadow-card-soft, 0 8px 18px rgba(var(--text-primary-rgb), 0.06));
    font-family: var(--font-family-base, "Montserrat", Arial, sans-serif);
}

.auth-submit:hover {
    background: var(--auth-submit-hover-bg);
}

.auth-register {
    color: var(--auth-register-text);
}

.auth-register a {
    color: var(--auth-register-link);
}

.auth-register a:hover {
    color: var(--auth-register-link-hover);
}

.auth-card-footer {
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.auth-card-footer-icon,
.auth-info-item > span {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--auth-footer-icon-color);
    background: var(--auth-footer-icon-bg);
    border: 1px solid var(--auth-footer-icon-border);
    box-shadow: none;
}

.auth-info-item strong,
.auth-card-footer strong {
    color: var(--text-primary);
}

.auth-info-item small,
.auth-card-footer small,
.auth-copyright {
    color: var(--text-muted);
}
