﻿/* ============================================================
   صفحة تسجيل الدخول
   ============================================================ */

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
        opacity: 0.03;
        z-index: 0;
    }

    /* دوائر الخلفية الزخرفية */
    body::after {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
        border-radius: 50%;
        z-index: 0;
    }

/* ============================================================
   حاوية الدخول
   ============================================================ */
.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   بطاقة الدخول
   ============================================================ */
.login-card {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.15), 0 0 0 2px #d4af37;
    position: relative;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, #1a365d, #d4af37, #1a365d);
        background-size: 200% 100%;
        animation: shimmer 3s linear infinite;
    }

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================================
   الترويسة
   ============================================================ */
.login-header {
    padding: 25px 20px 15px;
    text-align: center;
    background: linear-gradient(180deg, #fbfbfb 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
}

.logo-img {
    width: 220px;
    height: 150px;
    object-fit: contain;
    background: transparent !important;
    filter: drop-shadow(0 8px 15px rgba(30, 58, 138, 0.1));
    transition: transform 0.3s ease;
}

    .logo-img:hover {
        transform: scale(1.05);
    }

.system-title {
    color: #1a365d;
    font-weight: 800;
    font-size: 1.15rem;
    margin: 10px 0 8px;
    letter-spacing: -0.3px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 15px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid #fcd34d;
}

/* ============================================================
   الجسم والنموذج
   ============================================================ */
.login-body {
    padding: 25px 30px;
}

/* التنبيهات */
.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    line-height: 1.5;
    animation: slideDown 0.4s ease;
}

.login-alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-right: 3px solid #dc2626;
}

.login-alert i {
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   عناصر النموذج
   ============================================================ */
.form-floating-custom {
    position: relative;
}

.form-label-custom {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}

    .form-label-custom i {
        color: #d4af37;
        font-size: 0.85rem;
    }

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control-custom {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
    background: #fafbfc;
    transition: all 0.3s ease;
    outline: none;
}

    .form-control-custom:focus {
        border-color: #1a365d;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
    }

    .form-control-custom::placeholder {
        color: #cbd5e1;
        font-size: 0.85rem;
    }

/* زر اظهار كلمة السر */
.btn-toggle-password {
    position: absolute;
    left: 10px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

    .btn-toggle-password:hover {
        color: #1a365d;
        background: #f1f5f9;
    }

/* ============================================================
   زر الدخول
   ============================================================ */
.btn-login-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a365d, #1e40af);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
}

    .btn-login-submit::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
        transition: left 0.5s;
    }

    .btn-login-submit:hover {
        background: linear-gradient(135deg, #d4af37, #b8952f);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    }

        .btn-login-submit:hover::before {
            left: 100%;
        }

    .btn-login-submit:active {
        transform: translateY(0);
    }

    .btn-login-submit .btn-loader {
        font-size: 1.2rem;
    }

/* ============================================================
   التذييل
   ============================================================ */
.login-footer {
    padding: 12px 20px;
    background: linear-gradient(180deg, #fbfbfb, #f8fafc);
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.footer-content {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
}

    .footer-content strong {
        color: #1a365d;
    }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 480px) {
    .login-card {
        border-radius: 20px;
    }

    .logo-img {
        width: 180px;
        height: 120px;
    }

    .system-title {
        font-size: 1rem;
    }

    .login-body {
        padding: 20px;
    }
}

/* رسائل التحقق */
.text-danger.small {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}
///////////////////////////////////
