/* Arabic Admin Login Styles */

/* Azhar Theme Variables */
:root {
  --azhar-primary: #1967D3;
  --azhar-primary-light: #E8F0FB;
  --azhar-primary-dark: #0a4291;
  --azhar-secondary: #388E3C;
  --azhar-accent: #66BB6A;
  --azhar-success: #4CAF50;
  --azhar-info: #26A69A;
  --azhar-warning: #FFA726;
  --azhar-danger: #EF5350;
  --azhar-light: #F1F8E9;
  --azhar-dark: #0a4291;
  --primary-300: #6599E2;
}

/* RTL Support */
[dir="rtl"] .login-box,
[dir="rtl"] .card,
[dir="rtl"] .input-group {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .input-group-append {
    order: -1;
}

[dir="rtl"] .input-group-prepend {
    order: 1;
}

body {
    font-family: 'Cairo', sans-serif;
}

/* Login Box Styling */
.login-box {
    width: 360px;
    margin: 7% auto;
}
.login-box {
    background: url('/images/login-bg.jpg') no-repeat center center;
    background-size: cover;
    /* Optional: add a semi-transparent overlay for readability */
    position: relative;
    z-index: 1;
}

/*.login-box {
    position: relative;
    overflow: hidden;*/ /* or auto */
/*}

.registration-card {
    position: relative;*/ /* not absolute */
    /*margin-top: 20px;*/ /* positive margin if needed */
    /*width: 100%;
    box-sizing: border-box;
}*/
.login-logo {
    font-size: 35px;
    text-align: center;
    /* margin-bottom: 25px; */
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}
body {
    background: url('/img/azhar.png') no-repeat center center fixed;
    background-size: cover;
}
.login-logo b {
    color: var(--azhar-primary);
}

/* Card Styling */
.card {
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    border: 0;
    display: inline-flex;
}

.login-card-body {
    padding: 20px;
    border-top: 0;
    color: #666;
    background-color: #fff;
}
body.login-page::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 101, 101, 0.397);
    z-index: 0;
}

.login-box-msg {
    margin: 0;
    text-align: center;
    padding: 0 20px 20px 20px;
    font-size: 18px;
    color: #666;
}

/* Input Group Styling */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    margin-bottom: 0;
}

.input-group-append {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* Password Toggle Button */
#togglePassword {
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

[dir="rtl"] #togglePassword {
    border-left: 1px solid #ced4da;
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

/* Form Control Styling */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Validation Styling */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Button Styling */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: var(--azhar-primary);
    border-color: var(--azhar-primary);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--azhar-primary-dark);
    border-color: var(--azhar-primary-dark);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Alert Styling */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Checkbox Styling */
.icheck-primary input[type="checkbox"]:checked + label::before {
    background-color: var(--azhar-primary);
    border-color: var(--azhar-primary);
}

/* Links */
a {
    color: var(--azhar-primary);
    text-decoration: none;
}

a:hover {
    color: var(--azhar-primary-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-box {
        width: 90%;
        margin-top: 20px;
    }
}

/* Arabic Font Support */
body {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

/* Loading State */
.abp-ui-busy {
    position: relative;
}

.abp-ui-busy::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Animation for form elements */
.form-control {
    transition: all 0.3s ease;
}

.btn {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.form-control:focus,
.btn:focus {
    outline: 2px solid var(--azhar-primary);
    outline-offset: 2px;
}

/* Error message animation */
.invalid-feedback {
    animation: slideDown 0.3s ease;
}
.admin--login{
    margin: 10% auto 0 auto;
    background-color: #fff;
    border-radius: 8px;
    min-width: 35%;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin--login .login-logo{
    font-size: 25px;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
}
.admin--login .brand-image{
    width: 65px;
}
.admin--login .card{
    box-shadow: none;
    border: none;
    width: 100%;
}
.admin--login .login-card-body{
    width: 100%;
}
.custom--input{
    margin-bottom: 16px;
}
.custom--input .form-control{
    padding: 16px;
    height: 50px;
    border-radius: 1000px!important;
    border: 1px solid var(--primary-300)!important;
}
.form-control:focus, .btn:focus{
    outline: none;
    box-shadow: none;
    border-color: var(--azhar-primary-dark)!important;
}
.main--btn{
    background-color: var(--azhar-primary);
    color: #fff;
    border-radius: 1000px!important;
    height: 50px;
    padding: 8px 20px;
}
.outline--btn{
    border-color: var(--azhar-primary-dark)!important;
    color: var(--azhar-primary-dark)!important;
    background-color: transparent!important;
}
.outline--btn:hover{
    background-color: var(--azhar-primary-dark)!important;
    color: #fff!important;
    border-color: var(--azhar-primary-dark)!important;
}
.icheck-primary label{
    padding-left: 29px !important;
}
html[dir="rtl"] .icheck-primary label{
    padding-left: 0 !important;
    padding-right: 29px !important;
}
html[dir="rtl"] .icheck-primary input:first-child+label::before{
    padding-left: 0 !important;
    padding-right: -29px !important;
}
.icheck-primary input[type="checkbox"]:checked + label::before{
    background-color: var(--azhar-primary);
    border-color: var(--azhar-primary);
}

@media (max-width: 576px) {
    .admin--login{
        min-width: 80%;
    }
}
