/* صفحة تسجيل الدخول — تقسيم: يمين العلامة | يسار النموذج */

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

/* يمين: العلامة والمقرأة */
.login-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    overflow: hidden;
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    color: #f8fafc;
}

.brand-inner {
    position: relative;
    z-index: 2;
    max-width: 440px;
    width: 100%;
}

.brand-logo-wrap {
    margin-bottom: 1.5rem;
}

.brand-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.brand-logo-fallback {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.brand-title {
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 0.65rem;
}

.brand-title span {
    color: #fcd34d;
    font-weight: 700;
}

.brand-tagline {
    font-size: 1.05rem;
    color: rgba(248, 250, 252, 0.78);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.brand-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.brand-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    transition: background 0.25s, transform 0.25s;
}

.brand-features li:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-4px);
}

.feat-icon {
    font-size: 1.35rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.brand-features strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.brand-features small {
    color: rgba(248, 250, 252, 0.65);
    font-size: 0.82rem;
}

.brand-quote {
    font-family: 'Amiri', 'Tajawal', serif;
    font-size: 1.35rem;
    line-height: 1.9;
    color: #fde68a;
    border-right: 3px solid #fcd34d;
    padding-right: 1rem;
    margin: 0 0 1.5rem;
}

.brand-version {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.45);
}

.brand-inner .developer-credit {
    margin-top: 1rem;
}

.brand-decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.decor-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(252, 211, 77, 0.15), transparent 70%);
    top: -120px;
    left: -100px;
}

.decor-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
    bottom: -80px;
    right: -60px;
}

/* يسار: نموذج الدخول */
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: #f8fafc;
}

.login-panel-inner {
    width: 100%;
    max-width: 400px;
}

.login-panel-head {
    margin-bottom: 2rem;
}

.login-panel-head h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.login-panel-head p {
    color: #64748b;
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 0.45rem;
}

.login-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.login-input::placeholder {
    color: #94a3b8;
}

.btn-login {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.95rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.45);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.login-panel .developer-credit {
    text-align: center;
    margin-top: 1rem;
}

.login-panel .alert {
    border-radius: 10px;
    font-size: 0.88rem;
}

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

    .login-brand {
        padding: 2.5rem 1.5rem;
    }

    .brand-features {
        display: none;
    }

    .brand-quote {
        font-size: 1.15rem;
    }

    .login-panel {
        padding: 2rem 1.5rem 3rem;
    }
}

@media (max-width: 480px) {
    .brand-logo,
    .brand-logo-fallback {
        width: 90px;
        height: 90px;
    }

    .brand-title {
        font-size: 1.45rem;
    }
}
