body {
    font-family: Tahoma, Arial, sans-serif;
    background-color: #DCEFE7;
    margin: 0;
    padding: 25px 10px;
    box-sizing: border-box;
}
.register-container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}
.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 15px;
}
[dir="rtl"] .lang-switcher {
    justify-content: flex-start;
}
.lang-switcher a {
    text-decoration: none;
    padding: 6px 12px;
    background: #eee;
    border-radius: 5px;
    font-size: 13px;
    color: #333;
}
.lang-switcher a.active {
    background: #2E5EAA;
    color: #fff;
}
h2 {
    text-align: center;
    color: #333;
    font-size: 26px;
    margin: 0 0 20px;
}
.alert-success {
    background-color: #e8f5e9;
    border-inline-start: 4px solid #4caf50;
    color: #2e7d32;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    border-radius: 4px;
}
.alert-error {
    background-color: #ffebee;
    border-inline-start: 4px solid #f44336;
    color: #c62828;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    border-radius: 4px;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}
input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 11px;
    border: 1.5px solid #222;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}
.input-error {
    border: 2px solid #f44336 !important;
    background-color: #fff5f5 !important;
}
.show-pass-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 12px;
    color: #555;
    margin: 6px 0 0;
    cursor: pointer;
}
.show-pass-label input {
    margin: 0 5px;
    cursor: pointer;
}
.hint {
    font-size: 12px;
    color: #1a4fa0;
    margin-top: 4px;
}

/* مربع التنبيه الأزرق الفاتح (بعرض النص ومتوسّط) */
.notice {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: fit-content;
    max-width: 92%;
    margin: 0 auto 15px;
    padding: 8px 10px;
    background-color: #e8f4fd;
    color: #0d47a1;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.7;
}

/* فاصل "اختياري" */
.divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 14px;
    color: #0000cd;
    font-weight: bold;
    font-size: 13px;
}
.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-top: 2px dashed #0000cd;
}

/* حقل الفخ للبوتات: مخفي بصرياً دون إخراجه عن الصفحة */
.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #2E5EAA;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    box-sizing: border-box;
}
button[type="submit"]:hover {
    background-color: #1d3f78;
}

/* نافذة التنبيه المنبثقة */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.modal-content p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: bold;
}
.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-back {
    background-color: #2E5EAA;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}
.btn-continue {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}
.btn-back:hover { background-color: #1d3f78; }
.btn-continue:hover { background-color: #5a6268; }
