/* =====================================================================
   IVA System — الهوية البصرية
   Navy: #0A1733  |  Gold: #D4AF37  |  Fonts: Cairo, Tajawal
   ===================================================================== */

:root {
    --navy:        #0A1733;
    --navy-light:  #16244d;
    --gold:        #D4AF37;
    --gold-dark:   #b8952e;
    --bg:          #f4f6fa;
    --white:       #ffffff;
    --text:        #1a2340;
    --text-muted:  #6b7488;
    --border:      #e2e6ef;
    --success:     #1e9e6a;
    --danger:      #d64545;
    --warning:     #e0a020;
    --shadow:      0 4px 24px rgba(10, 23, 51, 0.08);
    --radius:      12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ============ شاشة تسجيل الدخول ============ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: "";
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
    top: -150px; left: -150px;
    border-radius: 50%;
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    padding: 45px 40px;
    position: relative;
    z-index: 1;
    border-top: 4px solid var(--gold);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    color: var(--navy);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.login-logo .badge {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 10px;
}

/* ============ الحقول ============ */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    transition: all 0.2s;
    background: #fafbfd;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

/* ============ الأزرار ============ */
.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}

.btn-gold:hover { background: var(--gold-dark); }

/* ============ التنبيهات ============ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border-right: 4px solid;
}

.alert-danger {
    background: #fdeaea;
    color: var(--danger);
    border-color: var(--danger);
}

.alert-success {
    background: #e8f7f0;
    color: var(--success);
    border-color: var(--success);
}

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