/* =========================================
   تنسيقات صفحة تسجيل الدخول (Gpanel Login)
   ========================================= */
body.login-page-bg {
    background: linear-gradient(135deg, #f4f7f6 0%, #e0eafc 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Cairo', sans-serif;
}

.top-bar {
    position: absolute;
    top: 20px;
    right: 30px;
}

.back-link {
    color: var(--primary-color, #1a5276);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.7);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--primary-color, #1a5276);
    color: white;
    transform: translateX(-5px);
}

.login-container {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 86, 179, 0.1);
    border-top: 5px solid var(--secondary-color, #d35400);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    width: 80px;
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 1.6rem;
    color: var(--primary-color, #1a5276);
    font-weight: 800;
    margin-bottom: 10px;
}

.login-header p {
    color: #6c757d;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #343a40;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1.1rem;
    transition: 0.3s;
}

.input-icon input {
    width: 100%;
    padding: 15px 15px 15px 40px;
    padding-right: 45px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.input-icon input:focus {
    outline: none;
    border-color: var(--primary-color, #1a5276);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 82, 118, 0.1);
}

.input-icon input:focus + i, .input-icon input:not(:placeholder-shown) + i {
    color: var(--primary-color, #1a5276);
}

.btn-login {
    width: 100%;
    background: var(--primary-color, #1a5276);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-login:hover {
    background: var(--primary-dark, #004494);
    box-shadow: 0 5px 15px rgba(26, 82, 118, 0.3);
}

.btn-login:disabled {
    background: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

.login-footer {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.login-footer p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.btn-register-link {
    display: inline-block;
    color: var(--secondary-color, #d35400);
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s;
}

.btn-register-link:hover {
    color: var(--primary-color, #1a5276);
    text-decoration: underline;
}

/* رسائل النظام */
.login-msg {
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 0.95rem;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.login-msg.success, .login-msg.error {
    display: block;
    animation: fadeIn 0.3s ease;
}

.login-msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.login-msg.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 576px) {
    .login-container { padding: 40px 25px; }
    .top-bar { position: relative; top: 0; right: 0; margin-bottom: 20px; align-self: flex-start; }
}