/* Auth login — form card + brand showcase */

:root {
    --auth-primary: #1DA6E1;
    --auth-primary-dark: color-mix(in srgb, var(--auth-primary) 78%, #000);
    --auth-ink: #0f172a;
    --auth-text: #334155;
    --auth-muted: #64748b;
    --auth-line: #e2e8f0;
    --auth-surface: #ffffff;
    --auth-soft: #f1f5f9;
    --auth-canvas: #eef3f9;
    --auth-danger: #dc2626;
    --auth-radius: 12px;
    --auth-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.auth-page {
    margin: 0 !important;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    color: var(--auth-ink);
    background: var(--auth-canvas) !important;
    -webkit-font-smoothing: antialiased;
}

body.auth-page[dir='rtl'] {
    font-family: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* EN: form left / brand right. AR: columns flip with page direction. */
.auth-shell {
    display: grid;
    grid-template-columns: minmax(380px, 0.6fr) minmax(0, 1fr);
    min-height: 100vh;
}

body.auth-page .auth-form,
body.auth-page .form-label,
body.auth-page .form-control {
    text-align: start;
}

@keyframes auth-fade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* —— Form column —— */
.auth-main {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(520px 420px at 0% 0%, rgba(255, 255, 255, 0.9), transparent 70%),
        radial-gradient(480px 380px at 10% 100%, color-mix(in srgb, var(--auth-primary) 9%, transparent), transparent 70%),
        var(--auth-canvas);
}

/* Language switch: left in EN, right in AR */
.auth-main__header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: calc(410px + 2 * clamp(1.25rem, 3vw, 2.25rem));
    margin: 0 auto;
    padding: 1.5rem clamp(1.25rem, 3vw, 2.25rem) 0;
}

.auth-main__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.auth-main__actions .nav-link {
    color: var(--auth-muted);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.auth-lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--auth-line);
    box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.15);
}

.auth-lang__globe {
    display: inline-grid;
    place-items: center;
    width: 30px;
    font-size: 1.05rem;
    color: var(--auth-muted);
}

/* EN locale: EN on the left, عربي on the right (AR locale order stays as-is) */
body.auth-page:not([dir='rtl']) .auth-lang__globe {
    order: 0;
}

body.auth-page:not([dir='rtl']) .auth-lang a[hreflang='en'] {
    order: 1;
}

body.auth-page:not([dir='rtl']) .auth-lang a[hreflang='ar'] {
    order: 2;
}

.auth-lang a {
    min-width: 46px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--auth-muted);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

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

.auth-lang a:not(.is-active):hover {
    color: var(--auth-ink);
    background: var(--auth-soft);
}

.auth-main__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.75rem clamp(1.25rem, 3vw, 2.25rem) 1.25rem;
}

.auth-form {
    width: 100%;
    max-width: 410px;
    padding: 1.75rem 1.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 24px 60px -24px rgba(13, 44, 94, 0.28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: auth-fade 0.6s var(--auth-ease) both;
}

.auth-form__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-form__brand img {
    display: block;
    max-height: 86px;
    width: auto;
    max-width: min(260px, 85%);
    object-fit: contain;
}

body.auth-page .auth-card__title {
    margin: 0 0 0.35rem;
    text-align: center;
    font-size: clamp(1.55rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--auth-ink);
}

body.auth-page[dir='rtl'] .auth-card__title {
    letter-spacing: 0;
}

body.auth-page .auth-card__subtitle {
    margin: 0 0 1.25rem;
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.auth-form__panel {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0 0 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.auth-alert i {
    font-size: 1.1rem;
    line-height: 1.3;
}

.auth-page .form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--auth-text);
}

.auth-page .form-control {
    min-height: 48px;
    padding: 0.7rem 1rem;
    border-radius: var(--auth-radius);
    border: 1px solid var(--auth-line);
    background: #fff !important;
    font-size: 0.92rem;
    color: var(--auth-ink);
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-page .form-control::placeholder {
    color: #94a3b8;
}

.auth-page .form-control:hover {
    border-color: #cbd5e1;
}

.auth-page .form-control:-webkit-autofill,
.auth-page .form-control:-webkit-autofill:hover,
.auth-page .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--auth-ink);
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

.auth-page .form-control:focus {
    border-color: var(--auth-primary) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-primary) 15%, transparent) !important;
}

.auth-page .form-control.is-invalid {
    border-color: var(--auth-danger) !important;
    background-image: none !important;
}

.auth-page .invalid-feedback {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--auth-danger);
}

.auth-page .form-group {
    margin-bottom: 1rem;
}

.auth-input {
    position: relative;
}

.auth-input__icon {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input .form-control {
    padding-inline-start: 2.6rem;
}

.auth-input:focus-within .auth-input__icon {
    color: var(--auth-primary);
}

.auth-password-wrap .form-control {
    padding-inline-end: 2.9rem;
}

.auth-password-toggle {
    position: absolute;
    inset-inline-end: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--auth-muted);
    font-size: 1.1rem;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-password-toggle:hover {
    color: var(--auth-ink);
    background: var(--auth-soft);
}

.auth-caps-hint {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #b45309;
}

.auth-caps-hint[hidden] {
    display: none;
}

.auth-meta-row {
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 0.6rem;
    margin: 0.15rem 0 1.15rem;
}

.auth-meta-row a {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-meta-row a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--auth-text);
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--auth-primary);
    cursor: pointer;
}

.auth-page .btn-login,
.auth-page .auth-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 50px;
    border: 0;
    border-radius: var(--auth-radius);
    font-weight: 700;
    font-size: 1rem;
    background: var(--auth-primary);
    color: #fff;
    box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--auth-primary) 80%, transparent);
    transition: transform 0.2s var(--auth-ease), box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-submit__label i {
    font-size: 1.15rem;
}

.auth-page .btn-login:hover,
.auth-page .auth-submit:hover {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -10px color-mix(in srgb, var(--auth-primary) 85%, transparent);
}

.auth-page .btn-login:active,
.auth-page .auth-submit:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

.auth-page .btn-login:disabled,
.auth-page .auth-submit:disabled {
    opacity: 1;
    cursor: progress;
    transform: none;
}

.auth-submit__spinner,
.auth-submit__loading {
    display: none;
}

.auth-submit.is-loading .auth-submit__label {
    display: none;
}

.auth-submit.is-loading .auth-submit__loading {
    display: inline;
}

.auth-submit.is-loading .auth-submit__spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.auth-form__foot {
    margin-top: 1.1rem;
    text-align: center;
}

.auth-form__or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

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

.auth-form__foot p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--auth-muted);
}

.auth-form__foot strong {
    color: #0d2c5e;
    font-weight: 800;
}

.auth-page a:focus-visible,
.auth-page button:focus-visible,
.auth-check input:focus-visible {
    outline: 2px solid var(--auth-primary);
    outline-offset: 2px;
}

.auth-captcha {
    overflow: hidden;
}

.auth-page .g-recaptcha {
    transform-origin: 0 0;
}

body.auth-page[dir='rtl'] .g-recaptcha {
    transform-origin: 100% 0;
}

.auth-switch {
    margin: 1.25rem 0 0;
    text-align: center !important;
    font-size: 0.88rem;
    color: var(--auth-muted);
}

.auth-form .text-center a,
.auth-form p a {
    color: var(--auth-primary) !important;
    font-weight: 600;
    text-decoration: none;
}

/* App download — quiet pill links under the card */
.auth-apps {
    width: 100%;
    max-width: 410px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    animation: auth-fade 0.6s var(--auth-ease) 0.1s both;
}

.auth-apps__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

body.auth-page[dir='rtl'] .auth-apps__label {
    letter-spacing: 0;
    text-transform: none;
}

.auth-apps__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
}

.store-badge {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 148px;
    height: 42px;
    padding: 0 1.05rem;
    border-radius: 999px;
    background: transparent;
    color: var(--auth-ink);
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--auth-ease);
}

.store-badge:hover {
    color: var(--auth-ink);
    background: #fff;
    border-color: color-mix(in srgb, var(--auth-primary) 40%, rgba(15, 23, 42, 0.12));
    transform: translateY(-1px);
}

.store-badge__logo {
    flex: none;
    width: 18px;
    height: 18px;
    display: block;
}

.store-badge--apple .store-badge__logo {
    width: 16px;
    height: 18px;
    color: #111827;
}

.store-badge__label {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

body.auth-page[dir='rtl'] .store-badge__label {
    font-weight: 700;
}

.auth-main__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem clamp(1.25rem, 3vw, 2.25rem) 1.1rem;
    color: #94a3b8;
    font-size: 0.75rem;
}

.auth-footer__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.4rem 0.8rem;
    border: 1px solid color-mix(in srgb, var(--auth-primary) 28%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--auth-primary) 10%, #fff);
    color: var(--auth-primary);
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--auth-ease), box-shadow 0.2s ease;
}

.auth-footer__link:hover {
    color: #fff;
    background: var(--auth-primary);
    border-color: var(--auth-primary);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--auth-primary) 80%, transparent);
}

.auth-page .auth-wrapper,
.auth-page .bg-auth-side {
    display: none !important;
}

/* —— Brand showcase —— */
.auth-brand {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.6rem 2.5rem 1.75rem;
    padding-inline-start: 110px;
    color: #fff;
    isolation: isolate;
    background:
        radial-gradient(760px 520px at 78% -5%, color-mix(in srgb, var(--auth-primary) 38%, transparent), transparent 62%),
        radial-gradient(620px 520px at 25% 105%, color-mix(in srgb, var(--auth-primary) 28%, transparent), transparent 62%),
        linear-gradient(160deg, #081a3a 0%, #0d2c5e 52%, #0a2452 100%);
}

body.auth-page[dir='rtl'] .auth-brand {
    background:
        radial-gradient(760px 520px at 22% -5%, color-mix(in srgb, var(--auth-primary) 38%, transparent), transparent 62%),
        radial-gradient(620px 520px at 75% 105%, color-mix(in srgb, var(--auth-primary) 28%, transparent), transparent 62%),
        linear-gradient(200deg, #081a3a 0%, #0d2c5e 52%, #0a2452 100%);
}

/* Dot grid + light streaks */
.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 95%);
    mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 95%);
    pointer-events: none;
}

/* Accent shape on the outer edge (away from the form) */
.auth-brand::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-end: -96px;
    top: 3%;
    width: 130px;
    height: 170px;
    border-radius: 30px;
    background: linear-gradient(160deg, var(--auth-primary), var(--auth-primary-dark));
    transform: rotate(32deg);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

body.auth-page[dir='rtl'] .auth-brand::after {
    transform: rotate(-32deg);
}

.auth-brand__curve {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    z-index: 2;
    width: 120px;
    height: 100%;
    pointer-events: none;
}

body.auth-page[dir='rtl'] .auth-brand__curve {
    transform: scaleX(-1);
}

.auth-brand__curve-fill {
    fill: var(--auth-canvas);
}

.auth-brand__curve-line {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.auth-brand__eyebrow {
    position: relative;
    display: flex;
    animation: auth-fade 0.7s var(--auth-ease) both;
}

.auth-brand__eyebrow span {
    position: relative;
    white-space: nowrap;
    padding-bottom: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.auth-brand__eyebrow span::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: var(--auth-primary);
}

.auth-brand__intro {
    position: relative;
    margin-top: 0.25rem;
    text-align: center;
    animation: auth-fade 0.7s var(--auth-ease) 0.05s both;
}

.auth-brand__headline {
    margin: 0 0 0.6rem;
    font-size: clamp(1.9rem, 3vw, 2.85rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: #fff;
    text-wrap: balance;
}

body.auth-page[dir='rtl'] .auth-brand__headline {
    letter-spacing: 0;
    line-height: 1.4;
}

.auth-brand__headline span {
    color: var(--auth-primary);
}

.auth-brand__text {
    margin: 0 auto;
    max-width: 52ch;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    font-weight: 600;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Module tiles */
.auth-brand__modules {
    position: relative;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
    animation: auth-fade 0.7s var(--auth-ease) 0.1s both;
}

.auth-brand__modules.is-cols-1 { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto; width: 100%; }
.auth-brand__modules.is-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin-inline: auto; width: 100%; }
.auth-brand__modules.is-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.auth-brand__modules.is-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auth-brand__modules.is-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.auth-tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    min-height: 92px;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(9, 28, 64, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform 0.2s var(--auth-ease), border-color 0.2s ease, background 0.2s ease;
}

.auth-tile:hover {
    transform: translateY(-2px);
    background: rgba(13, 40, 88, 0.75);
    border-color: rgba(255, 255, 255, 0.22);
}

.auth-tile:hover .auth-tile__arrow {
    color: #fff;
    transform: translateX(2px);
}

body.auth-page[dir='rtl'] .auth-tile:hover .auth-tile__arrow {
    transform: translateX(-2px);
}

.auth-tile__icon {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 1.5rem;
    color: #fff;
    background: var(--auth-primary);
    box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--auth-primary) 70%, transparent);
}

.auth-tile__copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    text-align: start;
}

.auth-tile__copy strong,
.auth-tile__copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-tile__copy strong {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.auth-tile__copy small {
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.62);
}

.auth-tile__arrow {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 1.25rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.15rem;
    transition: color 0.2s ease, transform 0.2s var(--auth-ease);
}

/* Laptop showcase — anchored to the outer bottom corner */
.auth-brand__stage {
    position: relative;
    flex: 1;
    min-height: 200px;
    margin-top: 1.25rem;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.auth-device {
    position: relative;
    height: 100%;
    max-height: 440px;
    max-width: 78%;
    aspect-ratio: 16 / 9.6;
    display: flex;
    flex-direction: column;
    transform: perspective(1600px) rotateY(-10deg) rotateX(2deg);
    transform-origin: right bottom;
    animation: auth-fade 0.9s var(--auth-ease) 0.15s both;
}

body.auth-page[dir='rtl'] .auth-device {
    transform: perspective(1600px) rotateY(10deg) rotateX(2deg);
    transform-origin: left bottom;
}

.auth-device__screen {
    flex: 1;
    min-height: 0;
    padding: 10px;
    border-radius: 18px 18px 4px 4px;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 40px 70px -30px rgba(0, 0, 0, 0.75),
        -20px 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.auth-device__screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    background: #f4f6fa;
}

.auth-device__base {
    flex: none;
    height: 16px;
    margin: 0 -3%;
    border-radius: 2px 2px 14px 14px;
    background: linear-gradient(180deg, #e2e8f0, #94a3b8);
    box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.7);
}

.auth-brand__note {
    position: absolute;
    inset-inline-start: 0;
    bottom: 30%;
    max-width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: #fff;
    transform: rotate(-10deg);
    animation: auth-fade 0.9s var(--auth-ease) 0.25s both;
}

body.auth-page[dir='rtl'] .auth-brand__note {
    transform: rotate(10deg);
}

body.auth-page[dir='rtl'] .auth-brand__note svg {
    transform: scaleX(-1);
}

.auth-brand__note span {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

body.auth-page[dir='rtl'] .auth-brand__note span {
    font-family: 'Aref Ruqaa', 'IBM Plex Sans Arabic', serif;
    font-size: clamp(1.25rem, 1.8vw, 1.7rem);
    line-height: 1.5;
}

.auth-brand__note svg {
    width: 84px;
    height: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* —— Responsive —— */
@media (max-width: 1399.98px) {
    .auth-brand__modules.is-cols-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1199.98px) {
    .auth-shell {
        grid-template-columns: minmax(360px, 0.75fr) minmax(0, 1fr);
    }

    .auth-brand {
        padding-inline-end: 1.75rem;
        padding-inline-start: 100px;
    }

    .auth-brand__modules.is-cols-4,
    .auth-brand__modules.is-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .auth-tile__copy small {
        display: none;
    }

    .auth-device {
        max-width: 100%;
    }

    .auth-brand__note {
        display: none;
    }
}

@media (max-height: 780px) and (min-width: 992px) {
    .auth-brand__headline {
        font-size: clamp(1.6rem, 2.4vw, 2.2rem);
        margin-bottom: 0.35rem;
    }

    .auth-brand__modules {
        margin-top: 1rem;
        gap: 0.55rem;
    }

    .auth-tile {
        min-height: 72px;
        padding: 0.7rem 0.8rem;
    }

    .auth-tile__icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .auth-tile__copy strong {
        font-size: 0.95rem;
    }

    .auth-tile__copy small,
    .auth-brand__note {
        display: none;
    }

    .auth-form__brand img {
        max-height: 66px;
    }
}

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

    .auth-brand {
        display: none;
    }

    .auth-main__body {
        justify-content: flex-start;
        padding-top: clamp(0.75rem, 5vh, 2.5rem);
    }
}

@media (max-width: 575.98px) {
    .auth-main__header {
        padding: 1rem;
    }

    .auth-main__body {
        padding-inline: 1rem;
    }

    .auth-form {
        padding: 1.4rem 1.1rem 1.2rem;
        border-radius: 18px;
    }

    .auth-form__panel {
        padding: 1rem 0.9rem;
    }

    .auth-form__brand img {
        max-height: 66px;
    }

    .auth-main__footer {
        flex-direction: column-reverse;
        gap: 0.35rem;
        text-align: center;
    }

    .auth-captcha .g-recaptcha {
        transform: scale(0.9);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page *,
    .auth-page *::before,
    .auth-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Simple brand panel ----------------------------------------------------- */
@keyframes auth-brand-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-brand-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(18px, -14px, 0) scale(1.06); }
}

@keyframes auth-brand-pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--auth-primary) 36%, transparent); }
    50% { box-shadow: 0 0 0 7px transparent; }
}

.auth-brand {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: clamp(2.25rem, 5vw, 5.5rem);
    color: #fff;
    isolation: isolate;
    background: #0b234d;
}

body.auth-page[dir='rtl'] .auth-brand {
    background: #0b234d;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%),
        radial-gradient(circle at 50% 115%, color-mix(in srgb, var(--auth-primary) 23%, transparent), transparent 52%);
    -webkit-mask-image: none;
    mask-image: none;
    pointer-events: none;
}

.auth-brand::after {
    content: '';
    position: absolute;
    inset: 1.25rem;
    z-index: -1;
    width: auto;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 28px;
    background: transparent;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

body.auth-page[dir='rtl'] .auth-brand::after {
    transform: none;
}

.auth-brand__orb {
    position: absolute;
    z-index: -1;
    width: clamp(240px, 28vw, 430px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: color-mix(in srgb, var(--auth-primary) 20%, transparent);
    filter: blur(80px);
    opacity: 0.7;
    pointer-events: none;
    animation: auth-brand-drift 12s ease-in-out infinite;
}

.auth-brand__orb--one {
    inset-inline-end: -12%;
    top: -15%;
}

.auth-brand__orb--two {
    inset-inline-start: -16%;
    bottom: -23%;
    opacity: 0.45;
    animation-delay: -6s;
    animation-direction: reverse;
}

.auth-brand__content {
    width: min(100%, 880px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-brand__product {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: auth-brand-rise 0.6s var(--auth-ease) both;
}

body.auth-page[dir='rtl'] .auth-brand__product {
    letter-spacing: 0;
    text-transform: none;
}

.auth-brand__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.78);
    animation: auth-brand-rise 0.65s var(--auth-ease) 0.05s both;
}

.auth-brand__eyebrow i {
    color: var(--auth-primary);
    font-size: 1rem;
}

.auth-brand__eyebrow span {
    padding: 0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
}

.auth-brand__eyebrow span::after {
    content: none;
}

.auth-brand__intro {
    margin-top: clamp(1.4rem, 3vh, 2.4rem);
    max-width: 720px;
    text-align: center;
    animation: auth-brand-rise 0.7s var(--auth-ease) 0.08s both;
}

.auth-brand__headline {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4.25rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.045em;
    color: #fff;
    text-wrap: balance;
}

body.auth-page[dir='rtl'] .auth-brand__headline {
    line-height: 1.35;
    letter-spacing: 0;
}

.auth-brand__headline span {
    display: block;
    color: var(--auth-primary);
}

.auth-brand__text {
    max-width: 48ch;
    margin: 1rem auto 0;
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    font-weight: 500;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
}

.auth-brand__modules,
.auth-brand__modules.is-cols-1,
.auth-brand__modules.is-cols-2,
.auth-brand__modules.is-cols-3,
.auth-brand__modules.is-cols-4,
.auth-brand__modules.is-cols-5 {
    width: 100%;
    max-width: none;
    margin: clamp(2rem, 5vh, 3.5rem) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    list-style: none;
    animation: none;
}

.auth-tile {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: auth-brand-rise 0.55s var(--auth-ease) calc(0.16s + var(--tile-index) * 45ms) both;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--auth-ease);
}

.auth-tile::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset-block: 18%;
    inset-inline-start: 0;
    width: 2px;
    border-radius: 999px;
    background: var(--auth-primary);
    opacity: 0.72;
    transition: inset-block 0.25s ease, opacity 0.25s ease;
}

.auth-tile::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 110px;
    height: 110px;
    inset-inline-end: -62px;
    inset-block-start: -65px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--auth-primary) 16%, transparent);
    filter: blur(2px);
    opacity: 0.55;
    transition: transform 0.35s var(--auth-ease), opacity 0.25s ease;
}

.auth-tile:hover {
    transform: translateY(-4px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.125), rgba(255, 255, 255, 0.05));
    border-color: color-mix(in srgb, var(--auth-primary) 55%, rgba(255, 255, 255, 0.16));
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-tile:hover::before {
    inset-block: 10%;
    opacity: 1;
}

.auth-tile:hover::after {
    opacity: 0.9;
    transform: scale(1.12);
}

.auth-tile__icon {
    flex: none;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--auth-primary) 22%, transparent);
    border-radius: 13px;
    font-size: 1.3rem;
    color: var(--auth-primary);
    background: color-mix(in srgb, var(--auth-primary) 15%, rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: background 0.25s ease, transform 0.25s var(--auth-ease);
}

.auth-tile:hover .auth-tile__icon {
    transform: scale(1.06);
    background: color-mix(in srgb, var(--auth-primary) 22%, rgba(255, 255, 255, 0.035));
}

.auth-tile__copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    text-align: start;
}

.auth-tile__copy strong {
    overflow: hidden;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-tile__copy small {
    overflow: hidden;
    font-size: 0.73rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.52);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-brand__footer {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: clamp(1.4rem, 3vh, 2.25rem);
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.78rem;
    font-weight: 600;
    animation: auth-brand-rise 0.7s var(--auth-ease) 0.42s both;
}

.auth-brand__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--auth-primary);
    animation: auth-brand-pulse 2.4s ease-out infinite;
}

@media (max-width: 1399.98px) {
    .auth-brand {
        padding: 3.25rem 2.5rem;
    }

    .auth-brand__modules,
    .auth-brand__modules.is-cols-1,
    .auth-brand__modules.is-cols-2,
    .auth-brand__modules.is-cols-3,
    .auth-brand__modules.is-cols-4,
    .auth-brand__modules.is-cols-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .auth-brand {
        padding: 2.5rem 2rem;
    }

    .auth-brand__headline {
        font-size: clamp(2rem, 3.6vw, 3.2rem);
    }

    .auth-brand__modules,
    .auth-brand__modules.is-cols-1,
    .auth-brand__modules.is-cols-2,
    .auth-brand__modules.is-cols-3,
    .auth-brand__modules.is-cols-4,
    .auth-brand__modules.is-cols-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-height: 780px) and (min-width: 992px) {
    .auth-brand {
        padding-block: 2rem;
    }

    .auth-brand__intro {
        margin-top: 1.1rem;
    }

    .auth-brand__headline {
        font-size: clamp(1.8rem, 3vw, 2.75rem);
    }

    .auth-brand__text {
        margin-top: 0.55rem;
    }

    .auth-brand__modules,
    .auth-brand__modules.is-cols-1,
    .auth-brand__modules.is-cols-2,
    .auth-brand__modules.is-cols-3,
    .auth-brand__modules.is-cols-4,
    .auth-brand__modules.is-cols-5 {
        margin-top: 1.25rem;
        gap: 0.5rem;
    }

    .auth-tile {
        min-height: 62px;
        padding: 0.65rem;
        border-radius: 14px;
    }

    .auth-tile__icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .auth-tile__copy small {
        display: none;
    }

    .auth-brand__footer {
        margin-top: 1rem;
    }
}

@media (max-width: 991.98px) {
    .auth-brand {
        display: none;
    }
}
