/* =========================================
   بوابة الزبائن - Electro Suite
   ========================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 50%, #4a235a 100%);
    font-family: 'Cairo', sans-serif;
}

.auth-container { width: 100%; max-width: 450px; }

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header { text-align: center; margin-bottom: 30px; }

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.auth-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary, #8e44ad);
    margin: 12px auto 0;
    border-radius: 2px;
}

.auth-header p {
    color: #6c7a89;
    font-size: 15px;
    line-height: 1.7;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e6eb;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    background: #f8f9fb;
    color: #2c3e50;
    transition: all 0.3s ease;
    text-align: right;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary, #8e44ad);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(142, 68, 173, 0.12);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #8e44ad 0%, #6a1b9a 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(142, 68, 173, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(142, 68, 173, 0.5);
}

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

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eef1f4;
}

.admin-link {
    color: #8e44ad;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.admin-link:hover { color: #6a1b9a; text-decoration: underline; }

/* =========================================
   الوضع الليلي
   ========================================= */
body.dark-mode .auth-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #16213e 100%);
}

body.dark-mode .auth-card {
    background: #1e1e1e;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

body.dark-mode .auth-header h1 { color: #ecf0f1; }

body.dark-mode .auth-header p { color: #b0b8c1; }

body.dark-mode .form-group label { color: #ecf0f1; }

body.dark-mode .form-group input {
    background: #2c2c2c;
    color: #fff;
    border-color: #444;
}

body.dark-mode .auth-footer { border-top-color: #333; }

/* =========================================
   التجاوب مع الهواتف
   ========================================= */
@media (max-width: 480px) {
    .auth-card { padding: 30px 22px; border-radius: 16px; }
    .auth-header h1 { font-size: 24px; }
}

/* =========================================
   رسالة الترحيب في بوابة الزبائن
   ========================================= */
.welcome-footer {
    text-align: center;
    margin-top: 25px;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8f9fb 0%, #eef1f4 100%);
    border-radius: 12px;
    border: 1px solid #e1e6eb;
    animation: fadeIn 0.8s ease 0.3s both;
}

.welcome-icon {
    font-size: 32px;
    margin-bottom: 8px;
    animation: wave 2s ease-in-out infinite;
    display: inline-block;
}

.welcome-text {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.welcome-text strong {
    color: #8e44ad;
    font-size: 18px;
}

.welcome-subtext {
    color: #6c7a89;
    font-size: 13px;
    line-height: 1.6;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-15deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   رسالة الترحيب - الوضع الليلي
   ========================================= */
body.dark-mode .welcome-footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1e1e1e 100%);
    border-color: #444;
}

body.dark-mode .welcome-text {
    color: #ecf0f1;
}

body.dark-mode .welcome-text strong {
    color: #b370d8;
}

body.dark-mode .welcome-subtext {
    color: #b0b8c1;
}

/* =========================================
   صفحة نتيجة استعلام الزبون
   ========================================= */
.client-info {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e1e6eb;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f4;
}

.info-row:last-child { border-bottom: none; }

.info-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.info-value {
    color: #2c3e50;
    font-weight: 700;
    font-size: 15px;
}

.status-row {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #e1e6eb !important;
}

body.dark-mode .client-info {
    background: #2c2c2c;
    border-color: #444;
}

body.dark-mode .info-label { color: #ecf0f1; }
body.dark-mode .info-value { color: #fff; }
