/* static/css/auth.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #2d3748;
    font-size: 24px;
    margin-bottom: 6px;
}

.auth-header p {
    color: #718096;
    font-size: 14px;
}

.flash {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.flash-success {
    background: #c6f6d5;
    color: #276749;
    border: 1px solid #48bb78;
}

.flash-danger {
    background: #fed7d7;
    color: #9b2c2c;
    border: 1px solid #fc8181;
}

.flash-warning {
    background: #fefcbf;
    color: #975a16;
    border: 1px solid #f6ad55;
}

.flash-info {
    background: #bee3f8;
    color: #2a69ac;
    border: 1px solid #63b3ed;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 6px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-left: 48px;
}

.toggle-password {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px 8px;
}

.toggle-password:hover {
    color: #718096;
}

.auth-form small {
    display: block;
    color: #718096;
    font-size: 12px;
    margin-top: 4px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: white;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
}

.btn-google:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: #a0aec0;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-links span {
    color: #e2e8f0;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
    }
    .auth-header h1 {
        font-size: 20px;
    }
}
/* =====================================================
   أزرار المصادقة الخارجية
   ===================================================== */

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 8px;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.15);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.btn-facebook {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #1877f2;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    margin-top: 0;
}

.btn-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.btn-facebook i {
    font-size: 20px;
    color: #1877f2;
}

.btn-facebook:hover i {
    color: #fff;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 480px) {
    .btn-facebook,
    .btn-google {
        font-size: 14px;
        padding: 12px 16px;
    }
}