/* Modern Authentication Pages Styling */
body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-container {
    max-width: 500px;
    margin: 50px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: #333;
    font-weight: 600;
}

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

.form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    height: auto;
    box-shadow: none;
}

.form-control:focus {
    border-color: #5cb85c;
    box-shadow: 0 0 0 0.2rem rgba(92, 184, 92, 0.25);
}

.btn-primary {
    background-color: #5cb85c;
    border-color: #4cae4c;
    padding: 10px 20px;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #449d44;
    border-color: #398439;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: #5cb85c;
    text-decoration: none;
    margin: 0 10px;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* RTL Support */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .auth-header,
html[dir="rtl"] .form-group label {
    text-align: right;
}

html[dir="rtl"] .password-toggle {
    left: 10px;
    right: auto;
}

html[dir="rtl"] .input-group-addon {
    border-right: 1px solid #ccc;
    border-left: 0;
}

html[dir="rtl"] .auth-links {
    text-align: center;
}

/* LTR Support */
html[dir="ltr"] body {
    direction: ltr !important;
    text-align: left !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

html[dir="ltr"] .auth-header,
html[dir="ltr"] .form-group label {
    text-align: left !important;
}

html[dir="ltr"] .password-toggle {
    right: 10px;
    left: auto;
}

html[dir="ltr"] .input-group-addon {
    border-right: 0;
    border-left: 1px solid #ccc;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #5cb85c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}