/* Auth UI Styles with RTL/LTR Support */

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form {
    max-width: 480px;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 0;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
}

.login-form .logo {
    text-align: center;
    padding: 30px 0 20px;
}

.login-form .logo img {
    max-height: 80px;
}

.login-form .header {
    text-align: center;
    padding: 0 30px 20px;
}

.login-form .header .pic {
    margin-bottom: 20px;
}

.login-form .header .pic img {
    width: 120px;
    height: auto;
}

.login-form .header .title {
    font-size: 24px;
    font-weight: 700;
    color: #172239;
    margin-bottom: 8px;
}

.login-form .header p,
.login-form .header .info {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 15px;
    font-weight: normal;
}

.login-form .form {
    padding: 0 30px 40px;
}

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

.form-label {
    font-weight: 600;
    color: #172239;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-icon {
    position: relative;
}

/* RTL and LTR support for form-icon */
html[dir="ltr"] .form-icon .icon {
    left: 16px;
    right: auto;
}

html[dir="rtl"] .form-icon .icon {
    right: 16px;
    left: auto;
}

.form-icon .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-icon .icon svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* RTL and LTR support for form-control padding */
html[dir="ltr"] .form-icon input.form-control {
    padding-left: 50px;
    padding-right: 16px;
}

html[dir="rtl"] .form-icon input.form-control {
    padding-right: 50px;
    padding-left: 16px;
}

.form-icon input.form-control {
    height: 56px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.form-icon input.form-control:focus {
    background-color: #fff;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.btn-theme {
    /*background: linear-gradient(to right, #4361ee, #3a56d9);*/
    background-color: #F04F32;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-theme:hover {
    /*background: linear-gradient(to right, #3a56d9, #2e46c0);*/
    background-color: #ff563b;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(67, 97, 238, 0.2);
}

.btn-theme:active {
    transform: translateY(0);
}

.btn-theme .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
}

/* RTL and LTR support for button elements */
html[dir="ltr"] .btn-theme .spinner-border,
html[dir="ltr"] .btn-theme .fas {
    margin-right: 6px;
    margin-left: 0;
}

html[dir="rtl"] .btn-theme .spinner-border,
html[dir="rtl"] .btn-theme .fas {
    margin-left: 6px;
    margin-right: 0;
}

.form-check-input:checked {
    background-color: #4361ee;
    border-color: #4361ee;
}

.form-check-label {
    font-size: 14px;
    color: #6c757d;
}

.link {
    color: #4361ee;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.link:hover {
    color: #2e46c0;
    text-decoration: underline;
}

.language-selector {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 30px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background-color: #e9ecef;
}

.language-selector img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.language-selector span {
    font-size: 14px;
    font-weight: 500;
    margin: 0 6px;
}

.alert {
    border-radius: 10px;
    padding: 15px;
    font-size: 14px;
    font-weight: 500;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #4361ee;
}

/* RTL and LTR support for back-link icon */
html[dir="ltr"] .back-link i {
    margin-right: 6px;
    margin-left: 0;
}

html[dir="rtl"] .back-link i {
    margin-left: 6px;
    margin-right: 0;
    transform: rotate(180deg);
}

.back-link i {
    font-size: 12px;
}

/* Password toggle RTL support */
html[dir="ltr"] .password-toggle {
    right: 15px;
    left: auto;
}

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

.password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
}

/* RTL and LTR support for form text info icon */
html[dir="ltr"] .form-text i {
    margin-right: 6px;
    margin-left: 0;
}

html[dir="rtl"] .form-text i {
    margin-left: 6px;
    margin-right: 0;
}

/* Animation effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
