* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1631217868264-e5b90bb7e133?ixlib=rb-4.0.3&auto=format&fit=crop&w=1400&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #fff;
    min-height: 100vh;
}

.navbar {
    background: rgba(255,255,255,0.95);
    padding: 15px 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-container i {
    font-size: 2.2rem;
    color: #2e7d32;
}

.site-name {
    font-size: 2rem;
    color: #1b5e20;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #2e7d32;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2e7d32;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    background: #2e7d32;
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46,125,50,0.3);
}

.main-content {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    backdrop-filter: blur(3px);
}

.container {
    max-width: 450px;
    width: 100%;
}

/* بطاقة تسجيل الدخول */
.login-card {
    background: rgba(255,255,255,0.95);
    border-radius: 30px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(46,125,50,0.1), transparent);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* رأس البطاقة */
.login-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid white;
}

.login-icon i {
    font-size: 2.5rem;
    color: white;
}

.login-header h1 {
    color: #1b5e20;
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 1rem;
}

/* نموذج تسجيل الدخول */
.login-form {
    margin-bottom: 20px;
    position: relative;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    color: #1b5e20;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2e7d32;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46,125,50,0.1);
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #2e7d32;
}

/* خيارات إضافية */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2e7d32;
}

.forgot-password {
    color: #2e7d32;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #1b5e20;
    text-decoration: underline;
}

/* زر تسجيل الدخول */
.login-submit-btn {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 15px;
    width: 100%;
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46,125,50,0.4);
}

.login-submit-btn i {
    font-size: 1.2rem;
}

/* فصل */
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #666;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
}

/* تسجيل الدخول عبر وسائل التواصل */
.social-login {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn.google {
    background: #DB4437;
    color: white;
}

.social-btn.facebook {
    background: #4267B2;
    color: white;
}

.social-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* رابط التسجيل */
.register-link {
    text-align: center;
    margin: 20px 0 10px;
    color: #666;
}

.register-link a {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
    margin-right: 5px;
}

.register-link a:hover {
    text-decoration: underline;
}

/* قسم الدكاترة */
.doctor-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e8f5e9;
    text-align: center;
}

.doctor-section p {
    color: #666;
    margin-bottom: 15px;
}

.doctor-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid #2e7d32;
    color: #2e7d32;
    padding: 12px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.doctor-login-btn:hover {
    background: #2e7d32;
    color: white;
}

/* رسائل الخطأ */
.error-message {
    background: #ffebee;
    color: #f44336;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 4px solid #f44336;
}

.error-message i {
    font-size: 1.1rem;
}

/* خلفية مزخرفة */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.decor-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(46,125,50,0.05);
    bottom: -100px;
    left: -100px;
}

.decor-circle-2 {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(46,125,50,0.05);
    top: -50px;
    right: -50px;
}

/* التذييل */
.footer {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 60px 30px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #2e7d32;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #2e7d32;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #2e7d32;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .login-card {
        padding: 25px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}