.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    flex-shrink: 0;
    padding: var(--space-10) var(--space-5);
    background-color: var(--background);
    background-image: var(--mesh-page)
}

.auth-card {
    padding: var(--space-8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    background: var(--surface-0, #FFFFFF);
    box-shadow: var(--shadow-float)
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-6)
}

.auth-logo img {
    width: auto;
    height: 72px
}

.auth-title {
    font-size: var(--fs-2xl);
    text-align: center
}

.auth-subtitle {
    margin: 0 0 var(--space-6);
    font-size: var(--fs-sm);
    text-align: center
}

.auth-switch {
    margin: var(--space-5) 0 0;
    font-size: var(--fs-sm);
    text-align: center
}

.otp-inputs {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-5)
}

.otp-inputs input {
    padding: 0;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    width: 48px;
    height: 56px;
    font-size: var(--fs-xl);
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    transition: var(--transition-fast)
}

.otp-inputs input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft)
}

.resend-row {
    text-align: center;
    font-size: var(--fs-sm)
}

.resend-row button {
    color: var(--accent);
    font-weight: 600
}

/* ===== تخطيط الانقسام (التسجيل) ===== */
.auth-split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    flex-shrink: 0;
    background-color: var(--background);
    background-image: var(--mesh-page)
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10) var(--space-6);
    background: var(--background);
    background-image: var(--mesh-page)
}

.auth-form-side .auth-card {
    width: 100%;
    max-width: 440px;
    padding: var(--space-10) var(--space-8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-0);
    box-shadow: var(--shadow-card)
}

.auth-form-side .auth-title {
    margin: 0 0 var(--space-3);
    text-align: right
}

.auth-form-side .auth-subtitle {
    margin: 0 0 var(--space-8);
    text-align: right
}

.auth-form-side .auth-switch {
    margin-top: var(--space-6)
}

.auth-form-side .resend-row {
    margin-top: var(--space-6)
}

.auth-aside {
    display: none;
    position: relative;
    padding: var(--space-16);
    color: #eaf0fb;
    background: var(--gradient-dark);
    overflow: hidden
}

.auth-aside-mesh {
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(ellipse 50% 42% at 22% 18%, rgba(37, 99, 235, 0.32) 0%, rgba(37, 99, 235, 0.1) 42%, transparent 72%),
        radial-gradient(ellipse 48% 38% at 82% 72%, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0.04) 40%, transparent 70%),
        radial-gradient(ellipse 70% 55% at 45% 105%, rgba(30, 58, 138, 0.22) 0%, rgba(30, 58, 138, 0.06) 50%, transparent 78%),
        radial-gradient(ellipse 90% 80% at 50% 50%, rgba(11, 18, 32, 0) 30%, rgba(11, 18, 32, 0.35) 100%);
    pointer-events: none
}

.auth-aside-inner {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-4);
    height: 100%;
    max-width: 460px;
    z-index: 1
}

.auth-aside-brand {
    margin-bottom: var(--space-6)
}

.auth-aside-brand img {
    width: auto;
    height: 80px;
    object-fit: contain
}

.auth-aside h2 {
    font-size: var(--fs-3xl);
    color: #fff
}

.auth-aside p {
    font-size: var(--fs-md);
    color: #b9c4d8
}

.auth-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-4)
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--fs-base);
    color: #eaf0fb
}

.auth-benefits svg {
    color: var(--success-green-light);
    flex-shrink: 0
}

@media screen and (min-width: 767px) {
    .auth-split {
        grid-template-columns: 1fr 1fr
    }

    .auth-aside {
        display: block
    }

    .auth-form-side {
        padding: var(--space-16) clamp(var(--space-10), 5vw, var(--space-20))
    }

    .auth-form-side .auth-card {
        max-width: 460px;
        padding: var(--space-12) var(--space-10)
    }
}
