* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    height: 100vh;
    background-color: #f8f9fa;
    color: #333;
    overflow: hidden;
}

/* القسم الأيمن (المدونة والمحتوى) */
.content-section {
    flex: 1;
    padding: 50px;
    overflow-y: auto;
    background-color: #ffffff;
    border-left: 1px solid #eaeaea;
}

.content-section header h1 {
    font-size: 28px;
    color: #1a73e8;
    margin-bottom: 10px;
}

.content-section .subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.article-block {
    margin-bottom: 30px;
}

.article-block h2 {
    font-size: 20px;
    color: #202124;
    margin-bottom: 12px;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 5px;
}

.article-block p, .article-block li {
    color: #444;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 8px;
}

.article-block ul {
    padding-right: 20px;
}

/* القسم الأيسر (لوحة المصادقة وتسجيل الدخول) */
.auth-section {
    width: 420px;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.03);
}

.auth-container {
    width: 100%;
    max-width: 360px;
}

/* أزرار التبديل (Tabs) */
.tab-buttons {
    display: flex;
    margin-bottom: 25px;
    background: #e9ecef;
    border-radius: 8px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #ffffff;
    color: #1a73e8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* النماذج */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #202124;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #5f6368;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #1a73e8;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1557b0;
}

.separator {
    text-align: center;
    margin: 20px 0;
    color: #80868b;
    font-size: 13px;
    position: relative;
}

.auth-message {
    min-height: 20px;
    margin-top: 14px;
    color: #1a73e8;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* زر Google المميز */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    color: #3c4043;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
    background: #f7f8f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* التجاوب مع الهواتف والشاشات الصغيرة */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow-y: auto;
    }
    .content-section {
        border-left: none;
        border-bottom: 1px solid #eaeaea;
        padding: 20px;
    }
    .auth-section {
        width: 100%;
        padding: 20px;
    }
}
