/* Canonical Wadhih authentication components and themes. */
.wadhih-auth-surface {
    --wadhih-auth-page-base: #f5eee8;
    --wadhih-auth-light-layer-opacity: 1;
    --wadhih-auth-dark-layer-opacity: 0;
    --wadhih-auth-card-surface-start: rgba(102, 43, 21, 0.82);
    --wadhih-auth-card-surface: rgba(69, 27, 13, 0.84);
    --wadhih-auth-card-surface-strong: rgba(34, 13, 7, 0.96);
    --wadhih-auth-card-border: rgba(255, 202, 160, 0.20);
    --wadhih-auth-card-border-soft: rgba(255, 225, 201, 0.12);
    --wadhih-auth-card-shadow: rgba(38, 9, 2, 0.74);
    --wadhih-auth-card-highlight: rgba(255, 225, 199, 0.15);
    --wadhih-auth-card-caustic: rgba(255, 132, 60, 0.10);
    --wadhih-auth-card-outline: rgba(0, 0, 0, 0.22);
    --wadhih-auth-card-reflection: rgba(255, 231, 211, 0.11);
    --wadhih-auth-card-glare: rgba(255, 151, 82, 0.16);
    --wadhih-auth-accent: #ffc48d;
    --wadhih-auth-action: #bf6430;
    --wadhih-auth-action-strong: #8f3514;
    --wadhih-auth-control: rgba(255, 235, 218, 0.06);
    --wadhih-auth-control-hover: rgba(255, 196, 141, 0.10);
    --wadhih-auth-control-border-hover: rgba(255, 196, 141, 0.28);
    --wadhih-auth-scroll-track: rgba(255, 235, 218, 0.04);
    --wadhih-auth-scroll-thumb: rgba(255, 196, 141, 0.30);
    --wadhih-auth-scroll-thumb-hover: rgba(255, 196, 141, 0.48);
    --wadhih-auth-icon-start: rgba(255, 196, 141, 0.20);
    --wadhih-auth-icon-end: rgba(176, 78, 33, 0.09);
    --wadhih-auth-icon-shadow: rgba(38, 9, 2, 0.58);
    --wadhih-auth-icon-inset: rgba(255, 231, 211, 0.18);
    --wadhih-auth-icon-glow: rgba(255, 151, 82, 0.13);
    --wadhih-auth-input-surface: rgba(255, 243, 233, 0.065);
    --wadhih-auth-input-hover: rgba(255, 243, 233, 0.095);
    --wadhih-auth-input-focus: rgba(255, 235, 218, 0.11);
    --wadhih-auth-input-text: #fff7f0;
    --wadhih-auth-input-placeholder: #c5a995;
    --wadhih-auth-input-inset: rgba(255, 255, 255, 0.03);
    --wadhih-auth-input-autofill-surface: #6c493d;
    --wadhih-auth-focus-border: rgba(255, 196, 141, 0.58);
    --wadhih-auth-focus-ring: rgba(255, 196, 141, 0.18);
    --wadhih-auth-focus-shadow: rgba(38, 9, 2, 0.28);
    --wadhih-auth-theme-duration: 800ms;
    --wadhih-auth-theme-ease: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: light;
}

html[data-theme="dark"] .wadhih-auth-surface[data-auth-theme="site"] {
    --wadhih-auth-page-base: #020803;
    --wadhih-auth-light-layer-opacity: 0;
    --wadhih-auth-dark-layer-opacity: 1;
    --wadhih-auth-card-surface-start: rgba(9, 31, 14, 0.80);
    --wadhih-auth-card-surface: rgba(2, 18, 8, 0.82);
    --wadhih-auth-card-surface-strong: rgba(1, 12, 5, 0.95);
    --wadhih-auth-card-border: rgba(196, 255, 56, 0.17);
    --wadhih-auth-card-border-soft: rgba(215, 255, 183, 0.10);
    --wadhih-auth-card-shadow: rgba(0, 6, 1, 0.76);
    --wadhih-auth-card-highlight: rgba(226, 255, 201, 0.16);
    --wadhih-auth-card-caustic: rgba(38, 173, 54, 0.10);
    --wadhih-auth-card-outline: rgba(0, 0, 0, 0.20);
    --wadhih-auth-card-reflection: rgba(224, 255, 198, 0.105);
    --wadhih-auth-card-glare: rgba(196, 255, 56, 0.16);
    --wadhih-auth-accent: #c4ff38;
    --wadhih-auth-action: #087a38;
    --wadhih-auth-action-strong: #035321;
    --wadhih-auth-control: rgba(215, 255, 183, 0.055);
    --wadhih-auth-control-hover: rgba(196, 255, 56, 0.095);
    --wadhih-auth-control-border-hover: rgba(196, 255, 56, 0.25);
    --wadhih-auth-scroll-track: rgba(215, 255, 183, 0.035);
    --wadhih-auth-scroll-thumb: rgba(196, 255, 56, 0.30);
    --wadhih-auth-scroll-thumb-hover: rgba(196, 255, 56, 0.46);
    --wadhih-auth-icon-start: rgba(196, 255, 56, 0.20);
    --wadhih-auth-icon-end: rgba(41, 171, 57, 0.08);
    --wadhih-auth-icon-shadow: rgba(0, 8, 2, 0.58);
    --wadhih-auth-icon-inset: rgba(224, 255, 198, 0.18);
    --wadhih-auth-icon-glow: rgba(169, 255, 55, 0.10);
    --wadhih-auth-input-surface: rgba(228, 255, 222, 0.055);
    --wadhih-auth-input-hover: rgba(228, 255, 222, 0.082);
    --wadhih-auth-input-focus: rgba(220, 255, 208, 0.085);
    --wadhih-auth-input-text: #edf4ef;
    --wadhih-auth-input-placeholder: #93a99a;
    --wadhih-auth-input-inset: rgba(255, 255, 255, 0.025);
    --wadhih-auth-input-autofill-surface: #0e1d13;
    --wadhih-auth-focus-border: rgba(196, 255, 56, 0.55);
    --wadhih-auth-focus-ring: rgba(196, 255, 56, 0.17);
    --wadhih-auth-focus-shadow: rgba(0, 7, 2, 0.26);
    color-scheme: dark;
}

body.auth-page.wadhih-auth-surface,
body.public-owner-page.wadhih-auth-surface.owner-auth-visible {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    color: #ffffff;
    background-color: var(--wadhih-auth-page-base);
    transition: background-color var(--wadhih-auth-theme-duration) var(--wadhih-auth-theme-ease);
}

body.auth-page.wadhih-auth-surface {
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: 72px 24px 112px;
}

body.auth-page.wadhih-auth-surface::before,
body.auth-page.wadhih-auth-surface::after,
body.public-owner-page.wadhih-auth-surface.owner-auth-visible::before,
body.public-owner-page.wadhih-auth-surface.owner-auth-visible::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    transition: opacity var(--wadhih-auth-theme-duration) var(--wadhih-auth-theme-ease);
}

body.auth-page.wadhih-auth-surface::before,
body.public-owner-page.wadhih-auth-surface.owner-auth-visible::before {
    opacity: var(--wadhih-auth-light-layer-opacity);
    background:
        radial-gradient(circle at 12% 8%, rgba(217, 136, 65, 0.34), transparent 32%),
        radial-gradient(circle at 88% 78%, rgba(115, 54, 18, 0.24), transparent 34%),
        linear-gradient(145deg, #fffdf9 0%, #f6eee7 54%, #efe2d8 100%);
}

body.auth-page.wadhih-auth-surface::after,
body.public-owner-page.wadhih-auth-surface.owner-auth-visible::after {
    opacity: var(--wadhih-auth-dark-layer-opacity);
    background:
        radial-gradient(circle at 12% 10%, rgba(196, 255, 56, 0.17), transparent 31%),
        radial-gradient(circle at 88% 74%, rgba(53, 208, 79, 0.16), transparent 34%),
        radial-gradient(circle at 54% 108%, rgba(8, 122, 56, 0.24), transparent 40%),
        #020803;
}

.wadhih-auth-card {
    --auth-card-glare-x: 50%;
    --auth-card-glare-y: 12%;
    position: relative;
    isolation: isolate;
    z-index: 1;
    width: min(100%, 440px);
    max-height: calc(100dvh - 184px);
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--wadhih-auth-card-border);
    border-radius: 30px;
    background: linear-gradient(
        145deg,
        var(--wadhih-auth-card-surface-start) 0%,
        var(--wadhih-auth-card-surface) 45%,
        var(--wadhih-auth-card-surface-strong) 100%
    );
    color: #ffffff;
    box-shadow:
        0 38px 78px -22px var(--wadhih-auth-card-shadow),
        inset 0 1px 1px var(--wadhih-auth-card-highlight),
        inset 0 -1px 3px var(--wadhih-auth-card-caustic),
        0 0 0 1px var(--wadhih-auth-card-outline);
    padding: 0;
    backdrop-filter: blur(38px) saturate(185%);
    -webkit-backdrop-filter: blur(38px) saturate(185%);
    animation: wadhih-auth-card-pop 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
    transition:
        width 420ms cubic-bezier(0.16, 1, 0.3, 1),
        background var(--wadhih-auth-theme-duration) var(--wadhih-auth-theme-ease),
        border-color var(--wadhih-auth-theme-duration) var(--wadhih-auth-theme-ease),
        box-shadow var(--wadhih-auth-theme-duration) var(--wadhih-auth-theme-ease);
}

.wadhih-auth-card::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto;
    z-index: 0;
    height: 42%;
    border-radius: 29px 29px 18px 18px;
    background: linear-gradient(180deg, var(--wadhih-auth-card-reflection), transparent 92%);
    pointer-events: none;
}

.wadhih-auth-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(
        circle 180px at var(--auth-card-glare-x) var(--auth-card-glare-y),
        var(--wadhih-auth-card-glare),
        transparent 100%
    );
    mix-blend-mode: screen;
    pointer-events: none;
    transition: opacity 250ms ease;
}

.wadhih-auth-card:hover::after {
    opacity: 1;
}

.wadhih-auth-card > * {
    position: relative;
    z-index: 1;
}

.wadhih-auth-card.is-signup {
    width: min(100%, 660px);
}

.wadhih-auth-card-scroll {
    width: calc(100% - 12px);
    min-height: 0;
    max-height: calc(100dvh - 196px);
    margin: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--wadhih-auth-scroll-thumb) var(--wadhih-auth-scroll-track);
    border-radius: 24px;
    padding: 24px 28px 20px;
}

.wadhih-auth-card-scroll::-webkit-scrollbar,
.wadhih-auth-card--owner::-webkit-scrollbar {
    width: 7px;
}

.wadhih-auth-card-scroll::-webkit-scrollbar-button,
.wadhih-auth-card--owner::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.wadhih-auth-card-scroll::-webkit-scrollbar-track,
.wadhih-auth-card--owner::-webkit-scrollbar-track {
    margin: 20px 0;
    border-radius: 999px;
    background: var(--wadhih-auth-scroll-track);
}

.wadhih-auth-card-scroll::-webkit-scrollbar-thumb,
.wadhih-auth-card--owner::-webkit-scrollbar-thumb {
    min-height: 38px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--wadhih-auth-scroll-thumb);
    background-clip: content-box;
}

.wadhih-auth-card-scroll::-webkit-scrollbar-thumb:hover,
.wadhih-auth-card--owner::-webkit-scrollbar-thumb:hover {
    background: var(--wadhih-auth-scroll-thumb-hover);
    background-clip: content-box;
}

@keyframes wadhih-auth-card-pop {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.965);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.wadhih-auth-header {
    margin-bottom: 22px;
    text-align: center;
}

.wadhih-auth-icon-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.wadhih-auth-icon {
    position: relative;
    display: inline-grid !important;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--wadhih-auth-card-border);
    border-radius: 19px;
    background: linear-gradient(145deg, var(--wadhih-auth-icon-start), var(--wadhih-auth-icon-end));
    color: var(--wadhih-auth-accent);
    box-shadow:
        0 14px 34px var(--wadhih-auth-icon-shadow),
        inset 0 1px 1px var(--wadhih-auth-icon-inset),
        0 0 20px var(--wadhih-auth-icon-glow);
}

body.auth-page.wadhih-auth-surface .wadhih-auth-icon {
    display: inline-grid !important;
}

.wadhih-auth-icon::after {
    content: "";
    position: absolute;
    inset: -45% -65%;
    transform: rotate(22deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.20), transparent);
    animation: wadhih-auth-icon-sheen 5.4s ease-in-out infinite;
}

.wadhih-auth-icon svg {
    position: relative;
    z-index: 1;
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 7px var(--wadhih-auth-icon-glow));
}

@keyframes wadhih-auth-icon-sheen {
    0%, 58% {
        transform: translateX(-120%) rotate(22deg);
    }
    78%, 100% {
        transform: translateX(120%) rotate(22deg);
    }
}

.wadhih-auth-card .wadhih-auth-title {
    margin: 0 auto 9px;
    color: #ffffff;
    font-size: clamp(1.35rem, 4.6vw, 1.8rem);
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
    text-shadow: 0 2px 12px rgba(22, 8, 2, 0.3);
}

.wadhih-auth-card .wadhih-auth-subtitle {
    margin: 0 0 8px;
    color: var(--wadhih-auth-accent);
    font-size: 0.92rem;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
}

.wadhih-auth-card .wadhih-auth-intro {
    max-width: 360px;
    margin: 0 auto;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
    text-align: center;
    text-shadow: 0 2px 12px rgba(22, 8, 2, 0.3);
}

.wadhih-auth-form,
.wadhih-auth-field {
    display: grid;
    gap: 8px;
}

.wadhih-auth-form {
    margin-top: 0;
    gap: 10px;
}

.wadhih-auth-field,
.wadhih-auth-card label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.wadhih-auth-input,
.wadhih-auth-card input:not([type="checkbox"]):not(.owner-hidden-otp),
.wadhih-auth-card select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--wadhih-auth-card-border-soft);
    border-radius: 13px;
    outline: none;
    background: var(--wadhih-auth-input-surface);
    color: var(--wadhih-auth-input-text);
    caret-color: var(--wadhih-auth-accent);
    padding: 11px 14px;
    font: inherit;
    font-size: 14px;
    box-shadow:
        inset 0 1px 1px var(--wadhih-auth-input-inset),
        0 0 0 0 transparent;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.wadhih-auth-card input:not([type="checkbox"]):not(.owner-hidden-otp):hover,
.wadhih-auth-card select:hover {
    border-color: var(--wadhih-auth-card-border);
    background: var(--wadhih-auth-input-hover);
}

.wadhih-auth-card input:not([type="checkbox"]):not(.owner-hidden-otp):focus,
.wadhih-auth-card input:not([type="checkbox"]):not(.owner-hidden-otp):focus-visible,
.wadhih-auth-card select:focus,
.wadhih-auth-card select:focus-visible,
.wadhih-auth-card button:focus-visible,
.wadhih-auth-card a:focus-visible {
    border-color: var(--wadhih-auth-focus-border);
    outline: 0;
    box-shadow:
        0 0 0 4px var(--wadhih-auth-focus-ring),
        0 12px 28px var(--wadhih-auth-focus-shadow);
}

.wadhih-auth-card input::placeholder {
    color: var(--wadhih-auth-input-placeholder);
    opacity: 1;
}

/* Keep browser credential paint inside the active Wadhih auth theme. */
.wadhih-auth-card input.wadhih-auth-input:-webkit-autofill,
.wadhih-auth-card input.wadhih-auth-input:-webkit-autofill:hover,
.wadhih-auth-card input.wadhih-auth-input:-webkit-autofill:focus,
.wadhih-auth-card input.wadhih-auth-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--wadhih-auth-input-text);
    border-color: var(--wadhih-auth-card-border-soft);
    background: var(--wadhih-auth-input-autofill-surface);
    color: var(--wadhih-auth-input-text);
    caret-color: var(--wadhih-auth-accent);
    -webkit-box-shadow:
        0 0 0 1000px var(--wadhih-auth-input-autofill-surface) inset,
        inset 0 1px 1px var(--wadhih-auth-input-inset);
    box-shadow:
        0 0 0 1000px var(--wadhih-auth-input-autofill-surface) inset,
        inset 0 1px 1px var(--wadhih-auth-input-inset);
    transition:
        background-color 600000s 0s,
        color 600000s 0s,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.wadhih-auth-card input.wadhih-auth-input:autofill {
    -webkit-text-fill-color: var(--wadhih-auth-input-text);
    border-color: var(--wadhih-auth-card-border-soft);
    background: var(--wadhih-auth-input-autofill-surface);
    color: var(--wadhih-auth-input-text);
    caret-color: var(--wadhih-auth-accent);
    box-shadow:
        0 0 0 1000px var(--wadhih-auth-input-autofill-surface) inset,
        inset 0 1px 1px var(--wadhih-auth-input-inset);
}

.wadhih-auth-card input.wadhih-auth-input:-webkit-autofill:hover,
.wadhih-auth-card input.wadhih-auth-input:autofill:hover {
    border-color: var(--wadhih-auth-card-border);
}

.wadhih-auth-card input.wadhih-auth-input:-webkit-autofill:focus,
.wadhih-auth-card input.wadhih-auth-input:-webkit-autofill:active,
.wadhih-auth-card input.wadhih-auth-input:autofill:focus,
.wadhih-auth-card input.wadhih-auth-input:autofill:active {
    border-color: var(--wadhih-auth-focus-border);
    -webkit-box-shadow:
        0 0 0 1000px var(--wadhih-auth-input-autofill-surface) inset,
        0 0 0 4px var(--wadhih-auth-focus-ring),
        0 12px 28px var(--wadhih-auth-focus-shadow);
    box-shadow:
        0 0 0 1000px var(--wadhih-auth-input-autofill-surface) inset,
        0 0 0 4px var(--wadhih-auth-focus-ring),
        0 12px 28px var(--wadhih-auth-focus-shadow);
}

.wadhih-auth-card input[readonly] {
    background: rgba(255, 255, 255, 0.10);
}

.wadhih-auth-card select option {
    color: #251812;
    background: #fffdf9;
}

body.wadhih-auth-surface .wadhih-auth-primary,
body.wadhih-auth-surface .wadhih-auth-secondary {
    min-height: 48px;
    border-radius: 14px;
    padding: 11px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

body.wadhih-auth-surface .wadhih-auth-primary {
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: linear-gradient(135deg, var(--wadhih-auth-action), var(--wadhih-auth-action-strong));
    color: #ffffff;
    box-shadow:
        0 16px 32px -18px var(--wadhih-auth-card-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.wadhih-auth-surface .wadhih-auth-secondary {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    box-shadow: none;
}

body.wadhih-auth-surface .wadhih-auth-primary:not(:disabled):hover,
body.wadhih-auth-surface .wadhih-auth-secondary:not(:disabled):hover {
    transform: translateY(-2px);
}

body.wadhih-auth-surface .wadhih-auth-primary:not(:disabled):active,
body.wadhih-auth-surface .wadhih-auth-secondary:not(:disabled):active {
    transform: translateY(0) scale(0.985);
}

.wadhih-auth-feedback {
    min-height: 18px;
    margin: 0;
    color: #ffd2c6;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.wadhih-auth-status,
.wadhih-auth-success {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.wadhih-auth-otp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
    direction: ltr;
}

.wadhih-auth-otp-digit,
.wadhih-auth-card .wadhih-auth-otp-digit {
    min-width: 0;
    min-height: 50px;
    height: 50px;
    padding: 6px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}

.wadhih-auth-close {
    position: absolute;
    top: 18px;
    right: 18px;
    left: auto;
    z-index: 5;
    display: inline-grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    height: 44px;
    border: 1px solid var(--wadhih-auth-card-border-soft);
    border-radius: 13px;
    background: var(--wadhih-auth-control);
    color: #ffffff;
    padding: 0;
    text-decoration: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.wadhih-auth-close:hover,
.wadhih-auth-close:focus-visible {
    transform: translateY(-1px);
    border-color: var(--wadhih-auth-control-border-hover);
    color: var(--wadhih-auth-accent);
    background: var(--wadhih-auth-control-hover);
}

html[dir="rtl"] .wadhih-auth-close {
    right: auto;
    left: 18px;
}

.wadhih-auth-surface .is-hidden {
    display: none !important;
}

/* Public customer authentication structure. */
.auth-page .auth-brand-lockup {
    margin-bottom: 24px;
}

.auth-page .auth-intro {
    margin: 0 auto;
}

.auth-page .auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.auth-page .auth-remember input,
.auth-page .auth-terms input {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    height: 18px;
    padding: 0;
    accent-color: var(--wadhih-auth-action);
}

.auth-page .auth-status {
    margin-bottom: 8px;
}

.auth-page .auth-code-help,
.auth-page .auth-field-help {
    margin: 10px 0 0;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.45;
}

.auth-page .auth-field-error {
    min-height: 18px;
    margin: 0;
    color: #ffd2c6;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.auth-page .auth-resend {
    width: max-content;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    padding: 8px 12px;
    font-size: 12px;
    text-align: start;
    box-shadow: none;
}

.auth-page .auth-resend:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.auth-page .auth-switch {
    margin: 18px 0 0;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
}

.auth-page .auth-switch a,
.auth-page .auth-terms a {
    color: #ffffff;
    font-weight: 700;
    text-decoration-color: rgba(255, 255, 255, 0.62);
    text-underline-offset: 3px;
}

.auth-page .auth-switch a:hover,
.auth-page .auth-switch a:focus-visible,
.auth-page .auth-terms a:hover,
.auth-page .auth-terms a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.auth-page .auth-phone-row {
    display: grid;
    grid-template-columns: minmax(128px, 0.44fr) minmax(0, 1fr);
    gap: 8px;
}

.auth-page .auth-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-page .auth-profile-grid label:nth-child(3),
.auth-page .auth-profile-grid label:nth-child(6),
.auth-page .auth-profile-grid label:nth-child(7),
.auth-page .auth-profile-grid label:nth-child(8),
.auth-page .auth-profile-grid label:nth-child(9) {
    grid-column: 1 / -1;
}

.auth-page .auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.auth-page #authSubmit {
    position: relative;
    isolation: isolate;
    max-height: 0;
    min-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px) scale(0.82, 0.72);
    filter: blur(8px);
    clip-path: inset(0 36% round 14px);
    transition:
        max-height 360ms var(--wadhih-auth-theme-ease),
        min-height 360ms var(--wadhih-auth-theme-ease),
        margin-top 360ms var(--wadhih-auth-theme-ease),
        padding 360ms var(--wadhih-auth-theme-ease),
        opacity 320ms ease,
        transform 480ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 420ms cubic-bezier(0.16, 1, 0.3, 1),
        clip-path 480ms cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 480ms;
}

.auth-page #authSubmit.is-available {
    max-height: 54px;
    min-height: 48px;
    margin-top: 4px;
    padding: 11px 16px;
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    clip-path: inset(0 round 14px);
    transition-delay: 0s;
}

.auth-page #authSubmit.is-available:disabled {
    cursor: wait;
    opacity: 0.58;
}

/* Owner authentication integration; dashboard and selection panels are excluded. */
body.public-owner-page.wadhih-auth-surface.owner-auth-visible {
    overflow: hidden;
}

body.public-owner-page.owner-auth-visible > .admin-header {
    display: none;
}

body.public-owner-page.owner-auth-visible > .owner-portal {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    overflow: auto;
    padding: 24px;
}

.wadhih-auth-card--owner {
    max-height: calc(100dvh - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 28px 34px;
    scrollbar-width: thin;
    scrollbar-color: var(--wadhih-auth-scroll-thumb) var(--wadhih-auth-scroll-track);
    text-align: center;
}

.wadhih-auth-card--owner .wadhih-auth-icon {
    margin: 0 auto 18px;
}

.wadhih-auth-card--owner .wadhih-auth-header {
    margin-bottom: 20px;
}

.wadhih-auth-card--owner .wadhih-auth-title {
    max-width: 390px;
    font-size: clamp(1.25rem, 4vw, 1.72rem);
    line-height: 1.18;
}

.wadhih-auth-card--owner .wadhih-auth-form {
    gap: 12px;
    text-align: start;
}

.wadhih-auth-card--owner label {
    text-align: start;
}

.wadhih-auth-card--owner .owner-otp-panel {
    display: grid;
    gap: 10px;
}

.wadhih-auth-card--owner .mini-muted {
    margin: 0;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.45;
}

.wadhih-auth-card--owner button {
    width: 100%;
}

@media (max-width: 760px) {
    body.auth-page.wadhih-auth-surface {
        align-items: center;
        padding: 24px 12px 100px;
    }

    .auth-page .wadhih-auth-card,
    .auth-page .wadhih-auth-card.is-signup {
        width: min(100%, 660px);
        max-height: calc(100dvh - 124px);
    }

    .auth-page .wadhih-auth-card-scroll {
        max-height: calc(100dvh - 136px);
    }
}

@media (max-width: 680px) {
    .wadhih-auth-card {
        border-radius: 24px;
    }

    .auth-page .wadhih-auth-card-scroll {
        width: calc(100% - 10px);
        margin: 5px;
        border-radius: 20px;
        padding: 20px 18px 18px;
    }

    .wadhih-auth-close {
        top: 14px;
        right: 14px;
    }

    html[dir="rtl"] .wadhih-auth-close {
        right: auto;
        left: 14px;
    }

    .auth-page .auth-brand-lockup {
        margin-bottom: 20px;
    }
}

@media (max-width: 520px) {
    body.public-owner-page.owner-auth-visible > .owner-portal {
        padding: 14px 12px;
    }

    .wadhih-auth-card--owner {
        max-height: calc(100dvh - 28px);
        padding: 22px 18px;
    }

    .wadhih-auth-card .wadhih-auth-title,
    .wadhih-auth-card--owner .wadhih-auth-title {
        font-size: clamp(1.1rem, 6vw, 1.4rem);
    }

    .auth-page .auth-profile-grid,
    .auth-page .auth-phone-row {
        grid-template-columns: 1fr;
    }

    .wadhih-auth-otp-grid {
        gap: 6px;
    }

    .wadhih-auth-otp-digit,
    .wadhih-auth-card .wadhih-auth-otp-digit {
        min-height: 46px;
        height: 46px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.wadhih-auth-surface,
    body.wadhih-auth-surface::before,
    body.wadhih-auth-surface::after,
    .wadhih-auth-surface * {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
