/* AGAFORT Enterprise Auth — shared design system */

:root {
    --auth-font: 'Inter', 'Noto Sans Arabic', Ubuntu, Arial, sans-serif;
    --auth-radius: 12px;
    --auth-radius-sm: 8px;
    --auth-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
    --auth-input-h: 52px;
    --auth-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-surface: #ffffff;
}

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

html { scroll-behavior: smooth; }

body.auth-portal {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--auth-font);
    font-size: 15px;
    line-height: 1.55;
    color: #0f172a;
    background: var(--auth-bg, #f8fafc);
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: grid;
    flex: 1 1 auto;
    min-height: 100vh;
    grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
    align-items: start;
}

.auth-shell--no-hero {
    grid-template-columns: 1fr;
}

.auth-shell--sticky-hero .auth-hero {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: calc(100vh - 0px);
    max-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-shell--long-form {
    min-height: 100vh;
    height: auto;
}

.auth-shell--short-form .auth-panel {
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.auth-shell--long-form .auth-panel {
    justify-content: flex-start;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.auth-shell--onboarding .auth-panel {
    justify-content: flex-start;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.auth-panel-top {
    position: relative;
    z-index: 20;
}

.auth-hero__logo {
    max-height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

.auth-hero__media {
    margin: 1rem 0 0;
    max-width: 34rem;
    width: 100%;
}

.auth-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 16px 40px rgba(11, 31, 51, 0.18);
}

.auth-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: stretch;
    min-height: 100%;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    overflow: hidden;
    color: var(--auth-hero-fg, #fff);
    animation: authFadeIn 0.6s ease both;
}

.auth-hero__bg {
    position: absolute;
    inset: 0;
    background: var(--auth-hero-gradient);
    z-index: 0;
}

.auth-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0);
    background-size: 28px 28px;
    color: #fff;
    z-index: 1;
    pointer-events: none;
}

.auth-hero__glow {
    position: absolute;
    inset: auto -18% -22% auto;
    width: 56%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 93, 4, 0.28), transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.auth-hero__content {
    position: relative;
    z-index: 2;
    max-width: 34rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1 1 auto;
}

.auth-hero__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    opacity: 0.95;
}

.auth-hero__brand-mark {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.auth-hero__title {
    font-size: clamp(1.65rem, 2.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.18;
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--auth-hero-fg, #fff);
    text-shadow: none;
}

.auth-hero__subtitle {
    font-size: 0.98rem;
    line-height: 1.5;
    margin: 0;
    max-width: 32rem;
    color: var(--auth-hero-muted, rgba(255, 255, 255, 0.86));
    text-shadow: none;
}

.auth-hero__illus {
    margin-top: 1rem;
    max-width: 320px;
}

.auth-hero__features {
    list-style: none;
    padding: 0;
    margin: 0.35rem 0 0;
    display: grid;
    gap: 0.55rem;
}

.auth-hero__features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.94rem;
    opacity: 1;
    color: var(--auth-hero-fg, #fff);
}

.auth-hero__features li::before {
    content: '✓';
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background: #e85d04;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.auth-hero__trust {
    list-style: none;
    margin: auto 0 0;
    padding: 0.75rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.auth-hero__trust li {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--auth-trust-border, rgba(255, 255, 255, 0.18));
    background: var(--auth-trust-bg, rgba(255, 255, 255, 0.08));
    color: var(--auth-hero-muted, rgba(255, 255, 255, 0.82));
    font-size: 0.74rem;
    font-weight: 650;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    padding: 2rem;
    background: var(--auth-bg-panel, #fff);
    animation: authSlideUp 0.55s ease 0.1s both;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: calc(var(--auth-radius) + 4px);
    box-shadow: var(--auth-shadow);
    padding: 2.25rem 2rem;
}

.auth-card--wide {
    max-width: 640px;
}

.auth-form,
.auth-panel .auth-card form {
    max-width: 100%;
}

.auth-card__header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card__logo {
    height: 48px;
    width: auto;
    margin: 0 auto 1.25rem;
    display: block;
    object-fit: contain;
}

.auth-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.auth-card__subtitle {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.925rem;
}

.auth-field {
    margin-bottom: 1.15rem;
}

.auth-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #334155;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
    width: 100%;
    height: var(--auth-input-h);
    padding: 0 1rem;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    font: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color var(--auth-transition), box-shadow var(--auth-transition);
}

.auth-field input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-ring);
}

.auth-field input.is-invalid,
.auth-field select.is-invalid,
.auth-field textarea.is-invalid {
    border-color: #ef4444;
}

.auth-field__error {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #dc2626;
}

.auth-field__hint {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--auth-muted);
}

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

.auth-password-wrap input {
    padding-right: 3rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    color: var(--auth-muted);
    padding: 0.25rem;
    line-height: 1;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: #475569;
}

.auth-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--auth-primary);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: opacity var(--auth-transition);
}

.auth-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: var(--auth-input-h);
    border: none;
    border-radius: var(--auth-radius-sm);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: var(--auth-primary);
    box-shadow: 0 8px 24px var(--auth-primary-shadow);
    transition: transform var(--auth-transition), box-shadow var(--auth-transition), opacity var(--auth-transition);
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px var(--auth-primary-shadow);
}

.auth-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.7s linear infinite;
}

.auth-btn.is-loading .auth-btn__label { opacity: 0.85; }
.auth-btn.is-loading .auth-btn__spinner { display: block; }

.auth-btn--ghost {
    width: auto;
    min-width: 7.5rem;
    color: var(--auth-text, #0f172a);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--auth-primary) 35%, #cbd5e1);
    box-shadow: none;
}

.auth-btn--ghost:hover:not(:disabled) {
    background: color-mix(in srgb, var(--auth-primary) 8%, transparent);
    box-shadow: none;
}

.vendor-wizard__nav .auth-btn {
    width: auto;
    min-width: 8.5rem;
    padding-inline: 1.25rem;
}

.auth-details {
    border: 1px solid color-mix(in srgb, var(--auth-primary) 18%, #e2e8f0);
    border-radius: var(--auth-radius-sm);
    padding: 0.65rem 0.85rem;
    background: color-mix(in srgb, var(--auth-primary) 3%, #fff);
}

.auth-details__summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.925rem;
    list-style: none;
}

.auth-details__summary::-webkit-details-marker {
    display: none;
}

.auth-details__body {
    margin-top: 0.85rem;
}

.auth-field__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
    color: #334155;
}

.auth-channel-list {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.25rem;
}

.auth-channel-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color var(--auth-transition), background var(--auth-transition), box-shadow var(--auth-transition);
}

.auth-channel-option:hover {
    border-color: color-mix(in srgb, var(--auth-primary) 45%, #cbd5e1);
    background: color-mix(in srgb, var(--auth-primary) 4%, #fff);
}

.auth-channel-option:has(input:focus-visible) {
    outline: none;
    box-shadow: 0 0 0 3px var(--auth-primary-ring);
}

.auth-channel-option:has(input:checked) {
    border-color: var(--auth-primary);
    background: color-mix(in srgb, var(--auth-primary) 10%, #fff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--auth-primary) 25%, transparent);
}

.auth-channel-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.auth-channel-option__indicator {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: border-color var(--auth-transition), background var(--auth-transition);
}

.auth-channel-option__indicator::after {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--auth-primary);
    transform: scale(0);
    transition: transform var(--auth-transition);
}

.auth-channel-option:has(input:checked) .auth-channel-option__indicator {
    border-color: var(--auth-primary);
}

.auth-channel-option:has(input:checked) .auth-channel-option__indicator::after {
    transform: scale(1);
}

.auth-channel-option__text {
    font-size: 0.925rem;
    font-weight: 600;
    color: #0f172a;
}

.auth-alert {
    padding: 0.85rem 1rem;
    border-radius: var(--auth-radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.auth-alert--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.auth-alert--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--auth-muted);
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-social {
    display: flex;
    justify-content: center;
}

.auth-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 0.925rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--auth-transition), border-color var(--auth-transition);
}

.auth-social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--auth-muted);
}

.auth-footer a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

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

.auth-lang {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    gap: 0.35rem;
    z-index: 10;
}

[dir="rtl"] .auth-lang {
    right: auto;
    left: 1.25rem;
}

.auth-lang a {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--auth-border);
    color: #475569;
    background: #fff;
    transition: all var(--auth-transition);
}

.auth-lang a.is-active,
.auth-lang a:hover {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
    color: #fff;
}

.auth-home-link {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 10;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--auth-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

[dir="rtl"] .auth-home-link {
    left: auto;
    right: 1.25rem;
}

.auth-home-link:hover { color: var(--auth-primary); }

/* Portal themes — approved V1.1 side-panel family */
.auth-portal--customer {
    --auth-primary: #e85d04;
    --auth-primary-ring: rgba(232, 93, 4, 0.22);
    --auth-primary-shadow: rgba(232, 93, 4, 0.32);
    --auth-hero-gradient: linear-gradient(160deg, #fff9f4 0%, #ffe8d6 48%, #ffd7ba 100%);
    --auth-hero-fg: #1a2332;
    --auth-hero-muted: rgba(26, 35, 50, 0.72);
    --auth-trust-border: rgba(26, 35, 50, 0.1);
    --auth-trust-bg: rgba(255, 255, 255, 0.55);
    --auth-bg: #f7f5f2;
    --auth-bg-panel: #f7f5f2;
}

.auth-portal--vendor {
    --auth-primary: #e85d04;
    --auth-primary-ring: rgba(232, 93, 4, 0.22);
    --auth-primary-shadow: rgba(232, 93, 4, 0.32);
    --auth-hero-gradient: linear-gradient(160deg, #0a1a2b 0%, #123047 52%, #1a3a55 100%);
    --auth-hero-fg: #f7fafc;
    --auth-hero-muted: rgba(247, 250, 252, 0.78);
    --auth-trust-border: rgba(255, 255, 255, 0.18);
    --auth-trust-bg: rgba(255, 255, 255, 0.08);
    --auth-bg: #f3f1ee;
    --auth-bg-panel: #f7f5f2;
}

.auth-portal--admin {
    --auth-primary: #4f46e5;
    --auth-primary-ring: rgba(79, 70, 229, 0.22);
    --auth-primary-shadow: rgba(79, 70, 229, 0.32);
    --auth-hero-gradient: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
    --auth-bg: #f1f5f9;
    --auth-bg-panel: #ffffff;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes authFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

@media (max-width: 1100px) and (min-width: 768px) {
    .auth-shell {
        grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    }

    .auth-hero {
        padding: 1.5rem 1.25rem;
    }

    .auth-hero__title {
        font-size: 1.55rem;
    }
}

/* Stack only below tablet band so 768–1100 keeps a usable side-panel split. */
@media (max-width: 767px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-shell--sticky-hero .auth-hero {
        position: relative;
        max-height: none;
        min-height: auto;
    }

    .auth-hero {
        padding: 1.35rem 1.15rem 1.1rem;
        min-height: auto;
    }

    .auth-hero__media {
        max-width: 18rem;
    }

    .auth-hero__content {
        max-width: none;
    }

    .auth-hero__features li:nth-child(n + 3) {
        display: none;
    }

    .auth-hero__trust {
        display: none;
    }

    .auth-panel {
        padding: 1.5rem 1rem 2.5rem;
    }

    .auth-card {
        padding: 1.75rem 1.35rem;
    }

    .auth-card--wide {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .auth-shell:not(.auth-shell--mobile-visual) .auth-hero {
        display: none;
    }

    .auth-shell--mobile-visual .auth-hero {
        display: flex;
        padding: 1rem 1rem 0.85rem;
        min-height: 0;
        max-height: none;
    }

    .auth-shell--mobile-visual .auth-hero__logo {
        max-height: 26px;
    }

    .auth-shell--mobile-visual .auth-hero__features li:nth-child(n + 3) {
        display: none;
    }

    .auth-shell--mobile-visual .auth-hero__trust {
        display: none;
    }

    .auth-shell--mobile-visual .auth-hero__media {
        display: block;
        max-width: 100%;
        margin-top: 0.35rem;
    }

    .auth-shell--mobile-visual .auth-hero__media img {
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(11, 31, 51, 0.14);
    }

    .auth-shell--mobile-visual .auth-hero__title {
        font-size: 1.35rem;
        margin-bottom: 0;
    }

    .auth-shell--mobile-visual .auth-hero__subtitle {
        font-size: 0.88rem;
        margin-bottom: 0;
    }

    .auth-lang {
        position: static;
        justify-content: flex-end;
        padding: 0.75rem 1rem 0;
    }

    .auth-home-link {
        position: static;
        display: inline-flex;
        padding: 0.35rem 1rem 0.75rem;
    }

    .auth-panel-top {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-hero,
    .auth-panel,
    .auth-hero__illus {
        animation: none !important;
    }
}

/* OTP verification — shared customer + seller auth */
.auth-otp {
    margin-top: 0.25rem;
    position: relative;
    overflow-x: clip;
}

.auth-otp__subtitle {
    margin-bottom: 0;
}

.auth-otp__destination {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

.auth-otp-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(0.35rem, 2vw, 0.65rem);
    margin: 1.25rem 0 1rem;
    direction: ltr;
    unicode-bidi: isolate;
}

.auth-otp-grid__cell {
    flex: 0 0 auto;
    width: clamp(2.35rem, 11vw, 3rem);
    height: clamp(2.65rem, 12vw, 3.25rem);
    border: 1px solid var(--auth-border, #e2e8f0);
    border-radius: var(--auth-radius-sm, 8px);
    background: var(--auth-surface, #fff);
    color: #0f172a;
    caret-color: #0f172a;
    text-align: center;
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    font-weight: 700;
    line-height: 1;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: auto;
    user-select: text;
    position: relative;
    z-index: 1;
    transition: border-color var(--auth-transition, 0.25s ease), box-shadow var(--auth-transition, 0.25s ease);
}

.auth-otp-grid__cell:focus {
    outline: none;
    border-color: var(--ag-primary, #2563eb);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ag-primary, #2563eb) 20%, transparent);
}

.auth-otp-autofill {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.auth-otp-grid.is-invalid .auth-otp-grid__cell {
    border-color: #dc2626;
}

.auth-otp--synthetic .auth-otp__restart {
    margin-top: 1.5rem;
}

.auth-otp__meta {
    text-align: center;
    color: var(--auth-muted, #64748b);
    font-size: 0.95rem;
    margin: 0.75rem 0 0;
}

.auth-otp__meta[data-state="expired"] {
    color: #b45309;
}

.auth-otp-resend {
    text-align: center;
    margin: 0.85rem 0 1rem;
}

.auth-otp-resend__countdown {
    color: var(--auth-muted, #64748b);
    font-size: 0.95rem;
    margin: 0;
}

.auth-otp-resend__action {
    margin: 0;
}

.auth-otp-resend__form {
    display: none;
}

.auth-link-btn {
    background: none;
    border: none;
    color: var(--ag-primary, #2563eb);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: 0.95rem;
}

.auth-link-btn:disabled,
.auth-link-btn.is-loading {
    opacity: 0.65;
    cursor: wait;
    text-decoration: none;
}

.auth-otp__restart {
    margin-top: 1.25rem;
    text-align: center;
}

.auth-btn[disabled],
.auth-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 420px) {
    .auth-otp-grid {
        gap: 0.35rem;
    }

    .auth-otp-grid__cell {
        width: clamp(2.15rem, 13vw, 2.55rem);
        height: clamp(2.45rem, 14vw, 2.85rem);
        font-size: 1.05rem;
    }
}
