* {
    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-1576091160550-2173dba999ef?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: 600px;
    width: 100%;
}

/* بطاقة إنشاء الحساب */
.register-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;
}

.register-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); }
}

/* رأس البطاقة */
.register-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.register-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;
}

.register-icon i {
    font-size: 2.5rem;
    color: white;
}

.register-header h1 {
    color: #1b5e20;
    font-size: 2rem;
    margin-bottom: 10px;
}

.register-header p {
    color: #666;
    font-size: 1rem;
}

/* نموذج إنشاء الحساب */
.register-form {
    margin-bottom: 20px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.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;
    z-index: 1;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.input-group textarea {
    min-height: 80px;
    resize: vertical;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46,125,50,0.1);
}

/* قوة كلمة المرور */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.strength-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

/* الشروط */
.terms-group {
    margin: 20px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2e7d32;
}

.checkbox-item a {
    color: #2e7d32;
    text-decoration: none;
}

.checkbox-item a:hover {
    text-decoration: underline;
}

/* زر التسجيل */
.register-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;
}

.register-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46,125,50,0.4);
}

/* فصل */
.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-register {
    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);
}

/* رابط تسجيل الدخول */
.login-link {
    text-align: center;
    margin: 20px 0 10px;
    color: #666;
}

.login-link a {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
    margin-right: 5px;
}

.login-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-register-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-register-btn:hover {
    background: #2e7d32;
    color: white;
}

/* التذييل */
.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;
    }
    
    .register-card {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-register {
        flex-direction: column;
    }
}