body {
font-family: 'Cairo', sans-serif;
background:
url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2021&q=80')
no-repeat center center fixed;
background-size: cover;
min-height: 100vh;
position: relative;
}

/* طبقة داكنة فوق الخلفية لتحسين وضوح النموذج */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 0;
}

.container {
position: relative;
z-index: 1;
padding: 0 15px;
}

.navbar {
background-color: rgba(33, 37, 41, 0.95);
backdrop-filter: blur(10px);
}

.auth-card {
border: none;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
width: 100%;
max-width: 500px;
margin: 0 auto;
}

.auth-header {
background: linear-gradient(135deg, #1e1e2f, #0a0a0f);
color: white;
padding: 30px 20px;
text-align: center;
}

.auth-header i {
font-size: 3rem;
margin-bottom: 15px;
}

.auth-header h2 {
font-weight: 700;
margin-bottom: 10px;
font-size: 1.8rem;
}

.auth-header p {
font-size: 1rem;
opacity: 0.9;
}

.auth-body {
padding: 30px;
background: white;
}

.form-control,
.form-select {
border-radius: 12px;
padding: 12px 15px;
border: 2px solid #eef2f7;
transition: all 0.3s;
font-family: 'Cairo', sans-serif;
font-size: 0.95rem;
height: auto;
}

.form-control:focus,
.form-select:focus {
border-color: #0d6efd;
box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.input-group-text {
background: transparent;
border: 2px solid #eef2f7;
border-left: none;
border-radius: 12px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
color: #6c757d;
padding: 12px 15px;
}

.input-group .form-control {
border-left: none;
border-right: 2px solid #eef2f7;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}

.input-group .form-control:focus {
border-color: #0d6efd;
}

.btn-login {
background: linear-gradient(135deg, #0d6efd, #0b5ed7);
border: none;
border-radius: 12px;
padding: 12px;
font-weight: 600;
font-size: 1.1rem;
transition: all 0.3s;
}

.btn-login:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(13, 110, 253, 0.4);
}

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

.btn-social {
border: 2px solid #eef2f7;
border-radius: 12px;
padding: 12px;
width: 100%;
margin-bottom: 15px;
transition: all 0.3s;
background: white;
font-weight: 600;
font-size: 0.95rem;
}

.btn-social:hover {
background: #f8f9fa;
transform: translateY(-2px);
border-color: #0d6efd;
}

.btn-social i {
margin-left: 8px;
font-size: 1.2rem;
}

.divider {
text-align: center;
position: relative;
margin: 25px 0;
}

.divider::before,
.divider::after {
content: "";
position: absolute;
top: 50%;
width: 45%;
height: 2px;
background: #eef2f7;
}

.divider::before {
right: 0;
}

.divider::after {
left: 0;
}

.divider span {
background: white;
padding: 0 15px;
color: #6c757d;
position: relative;
z-index: 1;
font-size: 0.9rem;
}

.form-check-input {
width: 20px;
height: 20px;
margin-left: 8px;
cursor: pointer;
border: 2px solid #eef2f7;
}

.form-check-input:checked {
background-color: #0d6efd;
border-color: #0d6efd;
}

.form-check-label {
font-size: 0.95rem;
color: #6c757d;
cursor: pointer;
}

.forgot-password {
color: #0d6efd;
text-decoration: none;
font-weight: 600;
font-size: 0.95rem;
}

.forgot-password:hover {
text-decoration: underline;
}

.alert {
border-radius: 12px;
border: none;
padding: 12px 15px;
font-size: 0.95rem;
margin-bottom: 20px;
}

.footer {
background-color: #212529;
color: white;
margin-top: 60px;
position: relative;
z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
.auth-header h2 {
font-size: 1.6rem;
}
}

@media (max-width: 992px) {
.auth-body {
padding: 25px;
}

.auth-header {
padding: 25px 15px;
}

.auth-header h2 {
font-size: 1.5rem;
}
}

@media (max-width: 768px) {
section {
padding: 100px 0 40px !important;
}

.auth-header {
padding: 20px 15px;
}

.auth-header i {
font-size: 2.5rem;
}

.auth-header h2 {
font-size: 1.4rem;
}

.auth-header p {
font-size: 0.9rem;
}

.auth-body {
padding: 20px;
}

.form-control,
.form-select,
.input-group-text {
padding: 10px 12px;
font-size: 0.9rem;
}

.btn-login {
padding: 10px;
font-size: 1rem;
}

.btn-social {
padding: 10px;
font-size: 0.9rem;
}

.divider {
margin: 20px 0;
}

.forgot-password,
.form-check-label {
font-size: 0.9rem;
}

.form-check-input {
width: 18px;
height: 18px;
}
}

@media (max-width: 576px) {
section {
padding: 80px 0 30px !important;
}

.auth-card {
border-radius: 15px;
}

.auth-header {
padding: 20px 12px;
}

.auth-header i {
font-size: 2.2rem;
}

.auth-header h2 {
font-size: 1.3rem;
}

.auth-body {
padding: 18px;
}

.auth-body .mb-4 {
margin-bottom: 1rem !important;
}

.form-control,
.form-select,
.input-group-text {
padding: 8px 10px;
font-size: 0.85rem;
}

.btn-login {
padding: 10px;
font-size: 0.95rem;
}

.btn-social {
padding: 8px;
font-size: 0.85rem;
margin-bottom: 10px;
}

.btn-social i {
font-size: 1rem;
}

.divider {
margin: 15px 0;
}

.divider span {
padding: 0 10px;
font-size: 0.8rem;
}

.form-check-input {
width: 16px;
height: 16px;
}

.alert {
padding: 10px 12px;
font-size: 0.9rem;
}

.modal-body {
padding: 1rem !important;
}
}

@media (max-width: 375px) {
section {
padding: 70px 0 20px !important;
}

.auth-header {
padding: 15px 10px;
}

.auth-header i {
font-size: 2rem;
}

.auth-header h2 {
font-size: 1.2rem;
margin-bottom: 5px;
}

.auth-header p {
font-size: 0.8rem;
}

.auth-body {
padding: 15px;
}

.form-control,
.form-select,
.input-group-text {
padding: 8px;
font-size: 0.8rem;
}

.btn-login {
padding: 8px;
font-size: 0.9rem;
}

.d-flex.justify-content-between {
flex-direction: column;
gap: 10px;
align-items: flex-start !important;
}

.forgot-password {
align-self: flex-start;
}

.modal-body p {
font-size: 0.85rem;
margin-bottom: 1rem !important;
}

.modal-body .mb-4 {
margin-bottom: 1rem !important;
}
}

/* Animation */
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.auth-card {
animation: slideIn 0.5s ease-out;
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 320px) {
.auth-header i {
font-size: 1.8rem;
}

.auth-header h2 {
font-size: 1.1rem;
}

.btn-social {
font-size: 0.8rem;
}

.btn-social i {
font-size: 0.9rem;
}
}
