/* ==========================================================
   auth.css — تنسيقات صفحات الدخول/التسجيل المشتركة (منصة سفرة)
   ========================================================== */

:root {
    --primary: #E67E22;
    --secondary: #2C3E50;
    --light: #FDFEFE;
    --gray: #f4f6f7;
    --dark-text: #34495E;
    --font-family: 'Cairo', sans-serif;
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.auth-bg {
    font-family: var(--font-family);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-image: url('../images/bk.jpg');
    background-size: cover;
    background-position: center;
    padding: 1rem;
}

body.auth-bg-alt { background-image: url('../images/bk1.jpg'); }

.auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
}

.auth-form-section {
    flex-basis: 55%;
    background: var(--light);
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-branding-section {
    flex-basis: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    text-decoration: none;
    color: white;
}

.logo span { color: var(--primary); }

.auth-branding-section p {
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 280px;
    line-height: 1.6;
}

.form-header { text-align: center; margin-bottom: 2rem; }
.form-header h2 { font-size: 1.8rem; color: var(--dark-text); margin: 0; }
.form-header p { color: #7F8C8D; font-size: 0.9rem; }

.form-group { margin-bottom: 1.2rem; text-align: right; }
.form-group label { font-weight: 700; margin-bottom: 0.4rem; display: block; font-size: 0.85rem; }
.form-group .hint { font-size: 0.75rem; color: #7F8C8D; margin-top: 0.3rem; }

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.15);
}

textarea.form-control { resize: vertical; }

.btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1rem;
    font-family: var(--font-family);
}

.btn:hover {
    background: #D35400;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    transform: translateY(-2px);
}

.auth-link {
    margin-top: 1.5rem;
    color: var(--dark-text);
    text-align: center;
    font-size: 0.9rem;
}

.auth-link a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-divider {
    text-align: center;
    margin: 1.2rem 0;
    color: #7F8C8D;
    font-size: 0.8rem;
    position: relative;
}

.messages {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-align: right;
    font-size: 0.9rem;
}

.errors { background: #f8d7da; color: #721c24; }
.errors ul { list-style-position: inside; padding-right: 1rem; margin: 0; }
.success { background: #d4edda; color: #155724; }

.check-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #FFF7ED;
    border: 2px dashed #E67E22;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
}

.check-group input { margin-top: 5px; }
.check-group .check-title { font-weight: 700; font-size: 0.9rem; color: #34495E; }
.check-group .check-desc { font-size: 0.78rem; color: #7F8C8D; margin-top: 2px; }

@media (max-width: 768px) {
    .auth-branding-section { display: none; }
    .auth-wrapper {
        flex-direction: column;
        background: var(--light);
        backdrop-filter: none;
        max-width: 420px;
    }
    .auth-form-section { padding: 1.5rem; }
}
