/* ============ أنماط صفحة التسجيل ============ */
.mahd-register-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

.mahd-register-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 720px;
    width: 100%;
    padding: 50px;
}

.mahd-register-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 30px;
}

.mahd-register-header h1 {
    color: #1a5490;
    font-size: 32px;
    margin: 0 0 10px;
    font-weight: 700;
}

.mahd-register-header p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

.mahd-form-row {
    margin-bottom: 22px;
}

.mahd-form-row label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.mahd-form-row .required {
    color: #dc2626;
}

.mahd-form-row input,
.mahd-form-row select,
.mahd-form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.25s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.mahd-form-row input:focus,
.mahd-form-row select:focus,
.mahd-form-row textarea:focus {
    outline: none;
    border-color: #1a5490;
    box-shadow: 0 0 0 4px rgba(26, 84, 144, 0.1);
}

.mahd-form-row small {
    color: #9ca3af;
    font-size: 13px;
    display: block;
    margin-top: 6px;
}

.mahd-form-half {
    display: inline-block;
    width: calc(50% - 10px);
    vertical-align: top;
}

.mahd-form-half:nth-of-type(odd) {
    margin-left: 20px;
}

.mahd-form-actions {
    margin-top: 30px;
    text-align: center;
}

.mahd-btn-primary {
    background: linear-gradient(135deg, #1a5490, #2c7be5);
    color: #fff;
    border: none;
    padding: 15px 60px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.mahd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 84, 144, 0.3);
}

.mahd-alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 15px;
}

.mahd-alert-error {
    background: #fef2f2;
    border-right: 4px solid #dc8a26;
    color: #991b1b;
}

.mahd-alert ul {
    margin: 0;
    padding-right: 20px;
}

.mahd-form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f0f2f5;
}

.mahd-form-footer a {
    color: #0a3665;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 600px) {
    .mahd-register-container { padding: 30px 20px; }
    .mahd-form-half { width: 100%; margin-left: 0 !important; }
    .mahd-register-header h1 { font-size: 24px; }
}