:root {
    --alk-navy: #1a2942;
    --alk-navy-2: #2c3e50;
    --alk-red: #ed1c24;
    --alk-red-dark: #c4141b;
    --alk-gray: #6b7785;
}

* { box-sizing: border-box; }

.auth-body {
    margin: 0;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
    background: #f3f5f8;
    min-height: 100vh;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ---------- لوحة الهوية ---------- */
.auth-brand {
    position: relative;
    flex: 0 0 46%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(237, 28, 36, .18), transparent 45%),
        linear-gradient(160deg, var(--alk-navy) 0%, var(--alk-navy-2) 100%);
    overflow: hidden;
}

/* خطوط خلفية خفيفة */
.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px);
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    margin: auto 0;
    max-width: 440px;
}

.auth-logo {
    width: 96px;
    height: 96px;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.auth-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin: 1.4rem 0 .4rem;
    letter-spacing: -.5px;
}

.auth-wordmark {
    display: block;
    height: 18px;
    opacity: .55;
    filter: brightness(2.2);
    margin-bottom: 1rem;
}

.auth-tagline {
    font-size: 1.1rem;
    color: #c2cfdb;
    margin-bottom: 2.2rem;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.auth-features li {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .65rem 0;
    color: #dfe7ef;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.auth-features li i {
    flex: 0 0 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(237, 28, 36, .18);
    color: #ff6b70;
    font-size: 1.1rem;
}

.auth-brand-footer {
    position: relative;
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
}

/* ---------- الفورم ---------- */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

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

.auth-mobile-brand { display: none; }

.auth-heading {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--alk-navy);
    margin-bottom: .35rem;
}
.auth-sub {
    color: var(--alk-gray);
    margin-bottom: 2rem;
}

.auth-field { margin-bottom: 1.1rem; }
.auth-field label {
    display: block;
    font-weight: 600;
    color: var(--alk-navy-2);
    margin-bottom: .4rem;
    font-size: .92rem;
}

.auth-input {
    position: relative;
}
.auth-input > i.lead-icon {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5b1;
    font-size: 1.05rem;
    pointer-events: none;
}
.auth-input .form-control {
    display: block;
    width: 100%;
    outline: none;
    height: 52px;
    border: 1.5px solid #dde2e8;
    border-radius: 12px;
    padding-inline-start: 44px;
    padding-inline-end: 46px;
    font-size: 1rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.auth-input .form-control:focus {
    border-color: var(--alk-navy-2);
    box-shadow: 0 0 0 4px rgba(44, 62, 80, .12);
}
.auth-input .toggle-pass {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9aa5b1;
    width: 38px;
    height: 38px;
    border-radius: 8px;
}
.auth-input .toggle-pass:hover { color: var(--alk-navy); background: #f1f3f6; }

.btn-auth {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--alk-red);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: .6rem;
    box-shadow: 0 8px 20px rgba(237, 28, 36, .25);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-auth:hover { background: var(--alk-red-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(237, 28, 36, .32); }
.btn-auth:active { transform: translateY(0); }

.auth-alert {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    border-radius: 12px;
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .93rem;
}
.auth-alert.error { background: #fdecec; color: #a4161a; border: 1px solid #f7caca; }
.auth-alert.warn { background: #fff6e5; color: #8a5a00; border: 1px solid #ffe2a8; }
.auth-alert.ok { background: #e9f7ef; color: #1e7b45; border: 1px solid #c3e9d2; }
.auth-alert ul { margin: 0; padding-inline-start: 1rem; }
.auth-alert a { color: inherit; font-weight: 700; }

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .9rem;
}
.auth-links a { color: var(--alk-navy-2); text-decoration: none; }
.auth-links a:hover { color: var(--alk-red); }

.auth-help {
    font-size: .85rem;
    color: var(--alk-gray);
    margin-top: .35rem;
}

/* ---------- موبايل ---------- */
@media (max-width: 991.98px) {
    .auth-brand { display: none; }
    .auth-main { background: linear-gradient(180deg, var(--alk-navy) 0 220px, #f3f5f8 220px); align-items: flex-start; padding-top: 6rem; }
    .auth-card { background: #fff; border-radius: 18px; padding: 1.75rem 1.5rem; box-shadow: 0 15px 40px rgba(26, 41, 66, .18); }
    .auth-mobile-brand {
        display: flex; align-items: center; justify-content: center; gap: .6rem;
        margin: -5.2rem 0 1.75rem; color: #fff; font-weight: 800; font-size: 1.5rem;
    }
    .auth-mobile-brand img { width: 52px; height: 52px; background: #fff; border-radius: 50%; padding: 5px; }
}

input, select, textarea, button, .btn, .form-control { font-family: inherit; }
