/**
 * Public / client entry pages: login (+ 2FA, reset password), disable 2FA,
 * registration wizard polish, suspended access and 403/404 system pages.
 *
 * @package YOOPixel Portal
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.yoo-auth-page,
.yoo-sys-page,
.yoo-sys {
    --auth-brand: #FAA61A;
    --auth-brand-hover: #e89510;
    --auth-brand-soft: rgba(250, 166, 26, 0.12);
    --auth-brand-text: #b86e00;
    --auth-ink: #1f2937;
    --auth-muted: #6b7280;
    --auth-faint: #9ca3af;
    --auth-line: #eceef2;
    --auth-input: #dfe2e7;
    --auth-surface: #f7f8fa;
    --auth-green: #16a34a;
    --auth-green-soft: rgba(22, 163, 74, 0.1);
    --auth-blue: #2563eb;
    --auth-blue-soft: rgba(37, 99, 235, 0.1);
    --auth-red: #dc2626;
    --auth-red-soft: rgba(220, 38, 38, 0.1);
    --auth-amber: #d97706;
    --auth-amber-soft: rgba(217, 119, 6, 0.1);
}

/* ------------------------------------------------------------------
 * Page + shell (login, disable-2fa) — mobile first
 * ------------------------------------------------------------------ */
body.yoo-auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--auth-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.yoo-auth-page *,
.yoo-auth-page *::before,
.yoo-auth-page *::after {
    box-sizing: border-box;
}

.yoo-auth {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.yoo-auth-shell {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: #fff;
}

.yoo-auth-shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--auth-brand), #ffd58a 60%, rgba(250, 166, 26, 0));
    z-index: 2;
}

/* Brand panel (hidden on small screens) */
.yoo-auth-brand {
    display: none;
}

.yoo-auth-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 20px;
}

.yoo-auth-main > * {
    width: 100%;
    max-width: 400px;
}

.yoo-auth-logo {
    display: flex;
    justify-content: center;
    margin: 0 auto 22px;
}

.yoo-auth-logo img {
    display: block;
    height: 64px;
    width: auto;
    max-width: 100%;
}

.yoo-auth-view {
    margin: auto 0;
    animation: yooAuthIn 0.3s ease;
}

@keyframes yooAuthIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.yoo-auth-copy {
    margin: 28px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--auth-faint);
}

/* ------------------------------------------------------------------
 * Headings
 * ------------------------------------------------------------------ */
.yoo-auth-head {
    text-align: center;
    margin-bottom: 24px;
}

.yoo-auth-head h1 {
    margin: 0 0 6px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--auth-ink);
    letter-spacing: -0.2px;
}

.yoo-auth-head .form-subtitle {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--auth-muted);
}

.yoo-auth-head .form-subtitle strong {
    color: var(--auth-ink);
    word-break: break-all;
}

.yoo-auth-head .form-subtitle small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--auth-faint);
}

.yoo-auth-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--auth-brand-soft);
    color: var(--auth-brand-text);
}

.yoo-auth-icon .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
}

.yoo-auth-icon.is-green { background: var(--auth-green-soft); color: var(--auth-green); }
.yoo-auth-icon.is-blue { background: var(--auth-blue-soft); color: var(--auth-blue); }
.yoo-auth-icon.is-red { background: var(--auth-red-soft); color: var(--auth-red); }

/* ------------------------------------------------------------------
 * Fields
 * ------------------------------------------------------------------ */
.yoo-auth-page .form-group {
    margin: 0 0 16px;
}

.yoo-auth-page .form-group > label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.yoo-auth-input {
    position: relative;
    display: block;
}

.yoo-auth-input > .dashicons {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--auth-faint);
    pointer-events: none;
    transition: color 0.15s ease;
}

.yoo-auth-page .yoo-auth-input input,
.yoo-auth-page .yoo-auth-code-single {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    font: inherit;
    font-size: 16px;
    color: var(--auth-ink);
    background: #fff;
    border: 1px solid var(--auth-input);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.yoo-auth-page .yoo-auth-input.has-toggle input {
    padding-right: 46px;
}

.yoo-auth-page .yoo-auth-input input::placeholder,
.yoo-auth-page .yoo-auth-code-single::placeholder {
    color: #c0c5cd;
}

.yoo-auth-page .yoo-auth-input input:focus,
.yoo-auth-page .yoo-auth-code-single:focus {
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 3px rgba(250, 166, 26, 0.15);
}

.yoo-auth-input:focus-within > .dashicons {
    color: var(--auth-brand-text);
}

.yoo-auth-field.is-invalid .yoo-auth-input input {
    border-color: var(--auth-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.yoo-auth-field.is-invalid .yoo-auth-input > .dashicons {
    color: var(--auth-red);
}

.yoo-auth-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--auth-faint);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.yoo-auth-eye:hover,
.yoo-auth-eye[aria-pressed="true"] {
    background: var(--auth-surface);
    color: #374151;
}

.yoo-auth-eye:focus-visible {
    outline: 2px solid var(--auth-brand);
    outline-offset: 1px;
}

.yoo-auth-eye .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.yoo-auth-field-error,
.yoo-auth-caps,
.yoo-auth-match {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0 0;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
}

.yoo-auth-field-error[hidden],
.yoo-auth-caps[hidden],
.yoo-auth-match[hidden] {
    display: none;
}

.yoo-auth-field-error {
    color: var(--auth-red);
}

.yoo-auth-field-error::before {
    content: "\f534";
    font-family: dashicons;
    font-size: 15px;
    line-height: 1;
}

.yoo-auth-caps {
    color: var(--auth-amber);
}

.yoo-auth-match.is-ok { color: var(--auth-green); }
.yoo-auth-match.is-bad { color: var(--auth-red); }

.yoo-auth-caps .dashicons,
.yoo-auth-match .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

.yoo-auth-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--auth-muted);
    text-align: center;
}

.yoo-auth-page .form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px;
}

.yoo-auth-page .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.yoo-auth-page .checkbox-label input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-brand);
}

/* Strength meter */
.yoo-auth-page .password-strength-meter {
    height: 4px;
    margin-top: 8px;
    background: var(--auth-line);
    border-radius: 99px;
    overflow: hidden;
}

.yoo-auth-page .password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 99px;
    transition: width 0.25s ease, background 0.25s ease;
}

.yoo-auth-page .password-strength-bar.weak { background: var(--auth-red); }
.yoo-auth-page .password-strength-bar.medium { background: #f59e0b; }
.yoo-auth-page .password-strength-bar.strong { background: #84cc16; }
.yoo-auth-page .password-strength-bar.very-strong { background: var(--auth-green); }

.yoo-auth-page .password-strength-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--auth-muted);
}

.yoo-auth-page .password-strength-text:empty {
    display: none;
}

/* ------------------------------------------------------------------
 * Buttons + links
 * ------------------------------------------------------------------ */
.yoo-auth-page .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    padding: 0 20px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--auth-brand);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(250, 166, 26, 0.28);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.yoo-auth-page .btn:hover:not(:disabled) {
    background: var(--auth-brand-hover);
    color: #fff;
    box-shadow: 0 8px 20px rgba(250, 166, 26, 0.34);
}

.yoo-auth-page .btn:active:not(:disabled) {
    transform: translateY(1px);
}

.yoo-auth-page .btn:focus-visible {
    outline: 3px solid rgba(250, 166, 26, 0.35);
    outline-offset: 2px;
}

.yoo-auth-page .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

.yoo-auth-page .btn.is-loading {
    cursor: wait;
}

.yoo-auth-page .btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.yoo-auth-page .btn-loader {
    display: none;
    line-height: 0;
}

.yoo-auth-page .dashicons.spin {
    animation: yooAuthSpin 0.9s linear infinite;
}

@keyframes yooAuthSpin {
    to { transform: rotate(360deg); }
}

.yoo-auth-page .btn.is-secondary {
    color: #374151;
    background: #fff;
    border: 1px solid var(--auth-input);
    box-shadow: none;
}

.yoo-auth-page .btn.is-secondary:hover {
    color: var(--auth-ink);
    background: var(--auth-surface);
    box-shadow: none;
}

.yoo-auth-page .link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--auth-brand-text);
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.yoo-auth-page .link-btn:hover:not(:disabled) {
    color: #8f5400;
    background: var(--auth-brand-soft);
}

.yoo-auth-page .link-btn:disabled {
    color: var(--auth-faint);
    cursor: not-allowed;
}

.yoo-auth-page .link-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.yoo-auth-links {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.yoo-auth-page .form-footer {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--auth-line);
}

.yoo-auth-page .yoo-login-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--auth-muted);
    background: var(--auth-surface);
    border: 1px solid var(--auth-line);
    border-radius: 12px;
}

.yoo-auth-page .yoo-login-signup a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 600;
    color: var(--auth-brand-text);
    text-decoration: none;
}

.yoo-auth-page .yoo-login-signup a:hover {
    color: #8f5400;
}

.yoo-auth-page .yoo-login-signup .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ------------------------------------------------------------------
 * Login step 2: account chip + auth options
 * ------------------------------------------------------------------ */
.yoo-auth-account {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 5px 16px 5px 5px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--auth-ink);
    background: var(--auth-surface);
    border: 1px solid var(--auth-line);
    border-radius: 999px;
}

.yoo-auth-account #login-email-display {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yoo-auth-account-ico {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--auth-brand-soft);
    color: var(--auth-brand-text);
}

.yoo-auth-account-ico .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
}

.yoo-auth-page .auth-option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 10px;
    padding: 11px 14px 11px 11px;
    font: inherit;
    font-size: 14.5px;
    font-weight: 500;
    text-align: left;
    color: var(--auth-ink);
    background: #fff;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.yoo-auth-page .auth-option-btn:last-child {
    margin-bottom: 0;
}

.yoo-auth-page .auth-option-btn:hover:not(:disabled) {
    border-color: #fcd38a;
    background: #fffcf6;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.05);
}

.yoo-auth-page .auth-option-btn:disabled {
    opacity: 0.75;
    cursor: wait;
}

.yoo-auth-page .auth-option-btn > .dashicons:first-child {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    border-radius: 10px;
    background: var(--auth-brand-soft);
    color: var(--auth-brand-text);
}

.yoo-auth-page .auth-option-btn > .dashicons.spin:first-child {
    background: transparent;
}

.yoo-auth-page #choose-biometric-option > .dashicons:first-child {
    background: var(--auth-green-soft);
    color: var(--auth-green);
}

.yoo-auth-option-text {
    flex: 1;
    min-width: 0;
}

.yoo-auth-page .yoo-auth-option-go {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--auth-faint);
}

/* ------------------------------------------------------------------
 * Codes, timer, messages
 * ------------------------------------------------------------------ */
.yoo-auth-page .code-inputs {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 6px 0 18px;
}

.yoo-auth-page .code-input,
.yoo-auth-page .code-input-2fa {
    width: 44px;
    height: 52px;
    padding: 0;
    text-align: center;
    font: inherit;
    font-size: 21px;
    font-weight: 700;
    color: var(--auth-ink);
    background: #fff;
    border: 1px solid var(--auth-input);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.yoo-auth-page .code-input:focus,
.yoo-auth-page .code-input-2fa:focus {
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 3px rgba(250, 166, 26, 0.15);
}

.yoo-auth-page .yoo-auth-code-single {
    padding: 0 14px;
    height: 52px;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 6px;
}

.yoo-auth-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin: 0 auto 18px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--auth-brand-text);
    background: var(--auth-brand-soft);
    border-radius: 999px;
}

.yoo-auth-timer .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

.yoo-auth-timer strong {
    font-variant-numeric: tabular-nums;
}

.yoo-auth-resend {
    margin-top: 16px;
    text-align: center;
}

.yoo-auth-resend p {
    margin: 0 0 2px;
    font-size: 13px;
    color: var(--auth-muted);
}

.yoo-auth-resend #forgot-resend-timer {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.yoo-auth-page .login-message {
    margin: 0 0 14px;
}

.yoo-auth-page .login-message:empty {
    display: none;
}

.yoo-auth-page #login-message {
    margin: 14px 0 0;
}

.yoo-auth-page .login-message .error,
.yoo-auth-page .login-message .success {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 10px;
    border: 1px solid;
}

.yoo-auth-page .login-message .error::before,
.yoo-auth-page .login-message .success::before {
    flex: 0 0 18px;
    font-family: dashicons;
    font-size: 18px;
    line-height: 20px;
}

.yoo-auth-page .login-message .error {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.yoo-auth-page .login-message .error::before {
    content: "\f534";
}

.yoo-auth-page .login-message .success {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.yoo-auth-page .login-message .success::before {
    content: "\f12a";
}

/* ------------------------------------------------------------------
 * Result state (disable-2fa)
 * ------------------------------------------------------------------ */
.yoo-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 13px 15px;
    font-size: 13.5px;
    line-height: 1.55;
    border-radius: 12px;
    border: 1px solid;
}

.yoo-auth-alert p {
    margin: 0;
}

.yoo-auth-alert > .dashicons {
    flex: 0 0 18px;
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.yoo-auth-alert.is-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.yoo-auth-alert.is-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.yoo-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yoo-auth-note {
    margin: 16px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    text-align: center;
    color: var(--auth-muted);
}

/* ------------------------------------------------------------------
 * Toast position on auth pages
 * ------------------------------------------------------------------ */
.yoo-auth-page .yoo-admin-toast-message {
    font-family: inherit;
    z-index: 100000;
}

/* ------------------------------------------------------------------
 * Tablet / desktop split screen
 * ------------------------------------------------------------------ */
@media (min-width: 480px) {
    .yoo-auth-page .code-inputs {
        gap: 10px;
    }

    .yoo-auth-page .code-input,
    .yoo-auth-page .code-input-2fa {
        width: 50px;
        height: 58px;
        font-size: 23px;
    }
}

@media (min-width: 900px) {
    body.yoo-auth-page {
        background: #2f2f2e url('../images/background.jpg') center / cover no-repeat fixed;
    }

    .yoo-auth {
        align-items: center;
        padding: 32px;
    }

    .yoo-auth::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .yoo-auth-shell {
        max-width: 1000px;
        min-height: 620px;
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
        animation: yooAuthIn 0.4s ease;
    }

    .yoo-auth-shell::before {
        display: none;
    }

    .yoo-auth-brand {
        position: relative;
        flex: 0 0 44%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 40px;
        color: #fff;
        background:
            linear-gradient(180deg, rgba(17, 24, 39, 0.1) 0%, rgba(17, 24, 39, 0.55) 45%, rgba(17, 24, 39, 0.94) 100%),
            url('../images/background.jpg') center / cover no-repeat;
        overflow: hidden;
    }

    .yoo-auth-brand::before {
        content: '';
        position: absolute;
        top: -120px;
        left: -120px;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(250, 166, 26, 0.45) 0%, rgba(250, 166, 26, 0) 70%);
        pointer-events: none;
    }

    .yoo-auth-brand::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, var(--auth-brand), rgba(250, 166, 26, 0));
    }

    .yoo-auth-brand-inner {
        position: relative;
        z-index: 1;
    }

    .yoo-auth-brand-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 18px;
        padding: 6px 12px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.2px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .yoo-auth-brand-badge .dashicons {
        font-size: 15px;
        width: 15px;
        height: 15px;
        color: var(--auth-brand);
    }

    .yoo-auth-brand h2 {
        margin: 0 0 10px;
        font-size: 30px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.4px;
    }

    .yoo-auth-brand p {
        margin: 0 0 24px;
        font-size: 14.5px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.8);
    }

    .yoo-auth-brand-list {
        list-style: none;
        margin: 0;
        padding: 18px 0 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .yoo-auth-brand-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 13.5px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.92);
    }

    .yoo-auth-brand-ico {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        background: rgba(250, 166, 26, 0.2);
        color: var(--auth-brand);
    }

    .yoo-auth-brand-ico .dashicons {
        font-size: 17px;
        width: 17px;
        height: 17px;
    }

    .yoo-auth-main {
        padding: 40px 52px 24px;
        overflow-y: auto;
        max-height: calc(100vh - 64px);
    }

    .yoo-auth-logo {
        margin-top: auto;
    }

    .yoo-auth-logo img {
        height: 80px;
    }

    .yoo-auth-view {
        margin: 0;
    }

    .yoo-auth-copy {
        margin-top: auto;
        padding-top: 24px;
    }

    .yoo-auth-page .yoo-auth-input input,
    .yoo-auth-page .yoo-auth-code-single {
        font-size: 15px;
    }
}

@media (min-width: 900px) and (max-height: 700px) {
    .yoo-auth-shell {
        min-height: 0;
    }

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

    .yoo-auth-logo {
        margin-bottom: 14px;
    }
}

/* ------------------------------------------------------------------
 * Registration wizard polish (register.css stays the base)
 * ------------------------------------------------------------------ */
.yoo-register-page.yoo-auth-reg {
    --reg-brand-dark: #b86e00;
    --reg-soft: rgba(250, 166, 26, 0.1);
    --reg-line: #dfe2e7;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.yoo-register-page.yoo-auth-reg .yoo-reg::before {
    background: rgba(17, 24, 39, 0.5);
}

.yoo-register-page.yoo-auth-reg .yoo-reg-side {
    background:
        radial-gradient(circle at -10% -5%, rgba(250, 166, 26, 0.35) 0%, rgba(250, 166, 26, 0) 45%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.82) 0%, rgba(17, 24, 39, 0.95) 100%),
        url('../images/background.jpg') center / cover;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-logo img {
    height: 136px;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-steps li,
.yoo-register-page.yoo-auth-reg .yoo-reg-steps li.is-active,
.yoo-register-page.yoo-auth-reg .yoo-reg-steps li.is-done:hover,
.yoo-register-page.yoo-auth-reg .yoo-reg-steps.is-preview li:not(.is-active):hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-steps li.is-done:hover strong {
    color: var(--reg-brand);
}

.yoo-register-page.yoo-auth-reg .yoo-reg-head {
    border-bottom-color: #eceef2;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-head h2 {
    font-size: 22px;
    letter-spacing: -0.2px;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-head p {
    color: #6b7280;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-progress {
    background: #eceef2;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-field > span:first-child {
    font-size: 13px;
    color: #374151;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-field input[type="text"],
.yoo-register-page.yoo-auth-reg .yoo-reg-field input[type="email"],
.yoo-register-page.yoo-auth-reg .yoo-reg-field input[type="tel"],
.yoo-register-page.yoo-auth-reg .yoo-reg-field input[type="date"],
.yoo-register-page.yoo-auth-reg .yoo-reg-field input[type="number"],
.yoo-register-page.yoo-auth-reg .yoo-reg-field input[type="password"],
.yoo-register-page.yoo-auth-reg .yoo-reg-field select,
.yoo-register-page.yoo-auth-reg .yoo-reg-field textarea {
    border-width: 1px;
    border-color: #dfe2e7;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-field input:focus,
.yoo-register-page.yoo-auth-reg .yoo-reg-field select:focus,
.yoo-register-page.yoo-auth-reg .yoo-reg-field textarea:focus {
    border-color: var(--reg-brand);
    box-shadow: 0 0 0 3px rgba(250, 166, 26, 0.15);
}

.yoo-register-page.yoo-auth-reg .yoo-reg-field.is-invalid input,
.yoo-register-page.yoo-auth-reg .yoo-reg-field.is-invalid select,
.yoo-register-page.yoo-auth-reg .yoo-reg-field.is-invalid textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.yoo-register-page.yoo-auth-reg .yoo-reg-field-error {
    display: flex;
    align-items: center;
    gap: 4px;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-field-error::before {
    content: "\f534";
    font-family: dashicons;
    font-size: 15px;
    line-height: 1;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-otp input {
    border-width: 1px;
    border-color: #dfe2e7;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-otp input:focus {
    border-color: var(--reg-brand);
    box-shadow: 0 0 0 3px rgba(250, 166, 26, 0.15);
}

.yoo-register-page.yoo-auth-reg .yoo-reg-otp-icon {
    border-radius: 16px;
    color: #b86e00;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-program {
    border: 1px solid #eceef2;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.yoo-register-page.yoo-auth-reg .yoo-reg-program:hover {
    border-color: #fcd38a;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-program.is-selected {
    border-color: var(--reg-brand);
    box-shadow: 0 0 0 3px rgba(250, 166, 26, 0.18), 0 10px 24px rgba(17, 24, 39, 0.06);
}

.yoo-register-page.yoo-auth-reg .yoo-reg-program-media.is-empty {
    background: linear-gradient(135deg, #fff4e0, #ffe2b0);
    color: #b86e00;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-choice,
.yoo-register-page.yoo-auth-reg .yoo-reg-accept {
    border-width: 1px;
    border-color: #dfe2e7;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-drop {
    border-width: 1px;
    border-color: #d5d9df;
    background: #fafbfc;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-terms {
    background: #fafbfc;
    border-color: #eceef2;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-review-card {
    border-color: #eceef2;
    background: #fff;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-review-card header {
    background: #fff;
    border-bottom: 1px solid #eceef2;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-review-card h3 {
    font-size: 15px;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-review-card h3 .dashicons {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    border-radius: 9px;
    background: rgba(250, 166, 26, 0.12);
    color: #b86e00;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-review-card.is-ok header {
    background: #fff;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-review-card.is-ok h3 .dashicons {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-review-row {
    border-bottom-color: #f1f2f5;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-error[hidden] {
    display: none;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-error::before {
    content: "\f534";
    font-family: dashicons;
    font-size: 18px;
    line-height: 20px;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-nav {
    border-top-color: #eceef2;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-btn {
    min-height: 44px;
    font-weight: 600;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-btn.is-primary:hover {
    background: #e89510;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-btn.is-secondary {
    border-width: 1px;
    border-color: #dfe2e7;
    color: #374151;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-btn.is-secondary:hover {
    background: #f7f8fa;
    color: #1f2937;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-btn:focus-visible {
    outline: 3px solid rgba(250, 166, 26, 0.35);
    outline-offset: 2px;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-status-meta {
    border-color: #eceef2;
    background: #fafbfc;
}

.yoo-register-page.yoo-auth-reg .yoo-reg-status-meta div + div {
    border-color: #eceef2;
}

@media (max-width: 860px) {
    .yoo-register-page.yoo-auth-reg .yoo-reg-logo img {
        height: 84px;
        padding: 0;
        border-radius: 0;
    }

    .yoo-register-page.yoo-auth-reg .yoo-reg-steps li.is-active {
        box-shadow: none;
    }
}

/* ------------------------------------------------------------------
 * System pages: 403 / 404 (inside the portal) + suspended (full page)
 * ------------------------------------------------------------------ */
body.error404 .yoo-shell-logo img,
body.error404 .yoo-foot-brand img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

html body.yoo-portal-404-page.yooportal-page {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #6a6a68 url('../images/background.jpg') center / cover no-repeat fixed !important;
}

html body.yoo-portal-404-page .yooportal-wrapper {
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.yoo-portal-404-page .yoo-sys.yoo-portal-404 {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 24px 16px;
    overflow: hidden;
}

.yoo-sys-watermark {
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(1680px, 140vw);
    height: auto;
    transform: translate(-50%, -50%);
    opacity: .022;
    pointer-events: none;
    z-index: 0;
}

.yoo-portal-404 .yoo-sys-card {
    position: relative;
    z-index: 2;
}

.yoo-portal-404 .yoo-sys-logo {
    display: block;
    width: 168px;
    max-width: 58%;
    height: auto;
    margin: 0 auto 20px;
    object-fit: contain;
}

.yoo-sys {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62vh;
    padding: 32px 16px;
    font-family: inherit;
}

.yoo-sys *,
.yoo-sys *::before,
.yoo-sys *::after {
    box-sizing: border-box;
}

.yoo-sys-card {
    width: 100%;
    max-width: 480px;
    padding: 36px 28px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--auth-line);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
    animation: yooAuthIn 0.3s ease;
}

.yoo-sys-logo {
    display: block;
    width: 168px;
    max-width: 58%;
    height: auto;
    margin: 0 auto 20px;
    object-fit: contain;
}

.yoo-sys-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--auth-brand-soft);
    color: var(--auth-brand-text);
}

.yoo-sys-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.yoo-sys-icon.is-red { background: var(--auth-red-soft); color: var(--auth-red); }
.yoo-sys-icon.is-amber { background: var(--auth-amber-soft); color: var(--auth-amber); }
.yoo-sys-icon.is-green { background: var(--auth-green-soft); color: var(--auth-green); }

.yoo-sys-email {
    display: block;
    margin: 0 0 20px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--auth-ink);
    background: var(--auth-surface);
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    word-break: break-all;
}

.yoo-sys-note {
    margin: 20px 0 0;
    padding-top: 16px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--auth-faint);
    border-top: 1px solid var(--auth-line);
}

.yoo-sys-code {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    padding: 4px 11px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--auth-muted);
    background: var(--auth-surface);
    border: 1px solid var(--auth-line);
    border-radius: 999px;
}

.yoo-sys-code.is-red {
    color: var(--auth-red);
    background: #fef2f2;
    border-color: #fecaca;
}

.yoo-sys-card h1 {
    margin: 0 0 8px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--auth-ink);
    letter-spacing: -0.2px;
}

.yoo-sys-card > p {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--auth-muted);
}

.yoo-sys-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.yoo-sys-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 18px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.yoo-sys-btn .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
}

.yoo-sys-btn.is-primary,
.yoo-sys-btn.is-primary:visited {
    color: #fff;
    background: var(--auth-brand);
    border-color: var(--auth-brand);
}

.yoo-sys-btn.is-primary:hover,
.yoo-sys-btn.is-primary:focus {
    color: #fff;
    background: var(--auth-brand-hover);
    border-color: var(--auth-brand-hover);
}

.yoo-sys-btn.is-secondary,
.yoo-sys-btn.is-secondary:visited {
    color: #374151;
    background: #fff;
    border-color: var(--auth-input);
}

.yoo-sys-btn.is-secondary:hover,
.yoo-sys-btn.is-secondary:focus {
    color: var(--auth-ink);
    background: var(--auth-surface);
}

.yoo-sys-btn:focus-visible {
    outline: 3px solid rgba(250, 166, 26, 0.35);
    outline-offset: 2px;
}

/* Suspended full page */
body.yoo-sys-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--auth-ink);
    background: var(--auth-surface);
    -webkit-font-smoothing: antialiased;
}

body.yoo-sys-page .yoo-sys {
    position: relative;
    min-height: 100vh;
    padding: 24px 16px;
}

body.yoo-sys-page .yoo-sys-card {
    position: relative;
    z-index: 1;
    padding: 32px 22px 24px;
    border-radius: 20px;
}

.yoo-sys-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    padding: 12px 14px;
    text-align: left;
    background: #fafbfc;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
}

.yoo-sys-user img {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.yoo-sys-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.yoo-sys-user-info strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-ink);
}

.yoo-sys-user-info span {
    font-size: 12.5px;
    color: var(--auth-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.yoo-sys-page .yoo-sys-actions {
    flex-direction: column;
}

body.yoo-sys-page .yoo-sys-btn {
    width: 100%;
    height: 44px;
    font-size: 14px;
}

.yoo-sys-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 22px 0 0;
    padding-top: 18px;
    font-size: 13px;
    color: var(--auth-muted);
    border-top: 1px solid var(--auth-line);
}

.yoo-sys-contact .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--auth-faint);
}

.yoo-sys-contact a {
    font-weight: 600;
    color: var(--auth-brand-text);
    text-decoration: none;
}

.yoo-sys-contact a:hover {
    text-decoration: none;
    color: #e89510;
}

html.yoo-unsub-html,
body.yoo-unsub-page {
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
}

body.yoo-unsub-page {
    min-height: 100dvh;
    margin: 0;
}

body.yoo-unsub-page .yoo-sys {
    min-height: 100dvh;
    height: 100dvh;
    padding: 16px;
    overflow: hidden;
}

body.yoo-unsub-page .yoo-sys-card {
    padding: 22px 22px 18px;
}

body.yoo-unsub-page .yoo-sys-logo {
    width: 132px;
    margin-bottom: 12px;
}

body.yoo-unsub-page .yoo-sys-code {
    margin-bottom: 10px;
}

body.yoo-unsub-page .yoo-sys-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    border-radius: 14px;
}

body.yoo-unsub-page .yoo-sys-icon .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
}

body.yoo-unsub-page .yoo-sys-card h1 {
    font-size: 20px;
    margin-bottom: 6px;
}

body.yoo-unsub-page .yoo-sys-card > p {
    margin-bottom: 12px;
}

body.yoo-unsub-page .yoo-sys-email {
    margin-bottom: 14px;
    padding: 8px 12px;
}

body.yoo-unsub-page .yoo-sys-note {
    margin-top: 14px;
    padding-top: 12px;
}

body.yoo-unsub-page .yoo-sys-actions {
    flex-direction: row;
    flex-wrap: wrap;
}

body.yoo-unsub-page .yoo-sys-btn {
    width: auto;
    flex: 1 1 140px;
    height: 40px;
}

@media (min-width: 640px) {
    .yoo-sys-card {
        padding: 42px 40px 36px;
    }

    body.yoo-sys-page {
        background: #2f2f2e url('../images/background.jpg') center / cover no-repeat fixed;
    }

    body.yoo-sys-page .yoo-sys::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.55);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    body.yoo-portal-404-page .yoo-sys::before {
        z-index: 0;
        background: rgba(17, 24, 39, 0.22);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    body.yoo-portal-404-page .yoo-sys-watermark {
        z-index: 1;
        opacity: .022;
    }

    body.yoo-portal-404-page .yoo-sys-card {
        z-index: 2;
    }

    body.yoo-sys-page .yoo-sys-card {
        padding: 40px 40px 30px;
        border: 0;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    }

    body.yoo-unsub-page .yoo-sys-card {
        padding: 28px 32px 22px;
    }
}

/* Option loading: the icon tile stays still, only the glyph turns */
.yoo-auth-page .auth-option-btn > .dashicons.spin:first-child {
    animation: none;
}
.yoo-auth-page .auth-option-btn > .dashicons.spin:first-child::before {
    display: inline-block;
    width: 19px;
    height: 19px;
    line-height: 19px;
    text-align: center;
    animation: yooAuthSpin 0.9s linear infinite;
}
