﻿body {
    font-family: 'Cairo', sans-serif;
    justify-content: center;
    align-items: center;
    background-color: #c5ddf1;
}

.auth-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    justify-content: flex-start;
    align-items: center;
}

.auth-page-header {
    background-color: #fff;
    width: 100%;
    height: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 1rem;
}

.header-middle-col.main-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.header-middle-col.main-logo a img {
    max-width: 25%;
}

/* Register/Login Box Styles */
.register-box {
    width: 400px;
    max-width: 90%;
    margin: 0 auto;
}

.register-box-body {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.login-box-msg {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    color: #3c8dbc;
}

/* Form Elements */
.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-control {
    height: 45px;
    border: 1px solid #7d7979;
    border-radius: 4px;
    width: 100%;
    padding: 10px 15px;
}

.form-control:focus {
    border-color: #3c8dbc;
    box-shadow: 0 0 8px rgba(60, 141, 188, 0.2);
}

select.form-control:not([size]):not([multiple]) {
    height: auto;
    min-height: 45px;
}

/* Button Styles */
.btn-primary {
    background-color: #3c8dbc;
    border-color: #367fa9;
    width: 100%;
    padding: 10px;
    font-weight: 700;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #367fa9;
}

.registration {
    margin-top: 20px;
}

/* Validation and Messages */
.validation-error {
    color: #dc3545;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.validation-summary {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.validation-summary ul {
    margin-bottom: 0;
    padding-right: 20px;
    padding-left: 20px;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-label.required::after {
    content: " *";
    color: red;
}

.required-fields-hint {
    font-size: 1.35rem;
    color: red;
    margin-bottom: 1rem;
}

/* Links and Additional Content */
.m-t-2 {
    margin-top: 20px;
    text-align: center;
}

.text-blue {
    color: #3c8dbc;
}

.text-blue:hover {
    color: #286090;
    text-decoration: underline;
}

/* RTL Support */
/* Default LTR styling */
.form-label, .validation-error, .validation-summary ul, .required-fields-hint {
    text-align: left;
}

/* RTL styling */
[dir="rtl"] .form-label, 
[dir="rtl"] .validation-error, 
[dir="rtl"] .validation-summary ul, 
[dir="rtl"] .required-fields-hint {
    text-align: right;
    direction: rtl;
}

/* Language-based classes */
.lang-en {
    direction: ltr;
}

.lang-en .form-label, 
.lang-en .validation-error, 
.lang-en .validation-summary ul, 
.lang-en .login-box-msg,
.lang-en .required-fields-hint {
    text-align: left;
}

.lang-ar {
    direction: rtl;
}

.lang-ar .form-label, 
.lang-ar .validation-error, 
.lang-ar .validation-summary ul, 
.lang-ar .login-box-msg,
.lang-ar .required-fields-hint {
    text-align: right;
}

.birth-date-div,
.birth-date-input {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .header-middle-col.main-logo a img {
        max-width: 40%;
    }
}

@media (max-width: 480px) {
    .register-box {
        width: 320px;
    }
    
    .header-middle-col.main-logo a img {
        max-width: 50%;
    }
}
