/* ============================================================
   LOGIN.CSS — صفحة تسجيل الدخول
   ============================================================ */

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--bg);
    overflow: hidden;
}

/* الجانب الترويجي (اللون الأساسي + الشعار) */
.login-promo {
    flex: 1.1;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.login-promo::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -200px;
    inset-inline-start: -200px;
}

.login-promo::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -100px;
    inset-inline-end: -100px;
}

.login-promo-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 480px;
}

.login-promo-logo {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 18px 28px;
    display: inline-block;
    box-shadow: var(--shadow-xl);
    margin-bottom: 32px;
}

.login-promo-logo img {
    height: 84px;
    width: auto;
    display: block;
}

.login-promo h1 {
    color: white;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.3;
}

.login-promo p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 28px;
}

.login-features {
    display: grid;
    gap: 12px;
    text-align: start;
    max-width: 380px;
    margin: 0 auto;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-feature i {
    background: rgba(255, 255, 255, 0.18);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.login-feature span { color: rgba(255, 255, 255, 0.95); font-weight: 500; font-size: 14px; }

/* الجانب التفاعلي (النموذج) */
.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--surface);
}

.login-form {
    width: 100%;
    max-width: 380px;
}

.login-form-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-form-header h2 {
    color: var(--text);
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
}

.login-form-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 15px;
}

.login-form .form-control {
    padding: 12px 14px;
    font-size: 15px;
}

.login-form .form-label {
    font-weight: 600;
    color: var(--text);
}

.login-form .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.login-divider {
    text-align: center;
    margin: 24px 0 20px;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
}

.login-divider::before, .login-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--border);
}

.login-divider::before { inset-inline-start: 0; }
.login-divider::after { inset-inline-end: 0; }

.login-footer-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 12.5px;
    margin-top: 28px;
}

/* Mobile */
@media (max-width: 991.98px) {
    .login-shell { flex-direction: column; }
    .login-promo { padding: 32px 24px; min-height: 280px; }
    .login-promo-logo img { height: 60px; }
    .login-promo h1 { font-size: 22px; }
    .login-promo p { font-size: 14px; }
    .login-features { display: none; }
    .login-form-side { padding: 28px 20px; }
}
