/* Auth Pages Styles */
.content {
    padding: 80px 0 60px;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 16px;
    color: #7d93b2;
    margin-bottom: 0;
}

.separator {
    width: 60px;
    height: 3px;
    margin: 20px auto;
}

.info-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    height: 100%;
}

.info-section h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-section p {
    color: #7d93b2;
    margin-bottom: 20px;
    line-height: 1.6;
}

.auth-alert {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13px;
    display: block;
}

.auth-alert.success-notif {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-alert.error-notif {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content {
        padding: 60px 0 40px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .info-section {
        margin-top: 30px;
    }
}

/* ==========================================================================
   RTL Form Layout and Icon Alignment Fixes
   ========================================================================== */

/* 1. Global RTL overrides for standard form elements */
[dir="rtl"] .custom-form label {
    line-height: 1 !important;
    margin-bottom: 12px !important;
    text-align: right !important;
    display: block !important;
}

[dir="rtl"] .dec-icon {
    left: auto !important;
    right: 0 !important;
    margin-top: 13px !important;
    border-right: none !important;
    border-left: 1px solid #e5e7f2 !important;
}

[dir="rtl"] .form-input {
    padding-right: 70px !important;
    padding-left: 20px !important;
}

[dir="rtl"] .input-wrapper .form-input {
    padding-right: 70px !important;
    padding-left: 20px !important;
}

/* 2. Base input field wrapper styling for fields with inline buttons */
.input-field-wrap {
    position: relative;
    flex: 1;
}

.input-field-wrap .form-input {
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* 3. Absolute positioning helper for dec-icon when inside input-field-wrap */
.input-field-wrap .dec-icon {
    position: absolute !important;
    top: 0 !important;
    width: 40px !important;
    height: 100% !important;
    margin-top: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: none !important;
    color: #ccc !important;
    pointer-events: none;
    z-index: 10;
    line-height: 1 !important;
}

/* LTR layout rules */
[dir="ltr"] .input-field-wrap .dec-icon {
    left: 0 !important;
    right: auto !important;
    border-right: 1px solid #e5e7f2 !important;
}
[dir="ltr"] .input-field-wrap .form-input {
    padding-left: 50px !important;
    padding-right: 20px !important;
}

/* RTL layout rules */
[dir="rtl"] .input-field-wrap .dec-icon {
    right: 0 !important;
    left: auto !important;
    border-left: 1px solid #e5e7f2 !important;
    margin-top: 0 !important;
}
[dir="rtl"] .input-field-wrap .form-input {
    padding-right: 50px !important;
    padding-left: 20px !important;
}

/* Ensure flex row has correct spacing and layout alignment */
.otp-flex-row {
    display: flex !important;
    gap: 8px !important;
    align-items: stretch !important;
    margin-bottom: 20px !important;
    width: 100%;
}

.otp-flex-row button.btn {
    margin: 0 !important;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    flex-shrink: 0;
}

/* 4. Password Toggle (Eye Icon) Fixes */
.password-toggle {
    z-index: 10 !important;
}

/* LTR password toggle separator */
[dir="ltr"] .password-toggle {
    right: 0 !important;
    left: auto !important;
    border-right: none !important;
    border-left: 1px solid #e5e7f2 !important;
}

/* RTL password toggle position and separator */
[dir="rtl"] .password-toggle {
    left: 0 !important;
    right: auto !important;
    border-left: none !important;
    border-right: 1px solid #e5e7f2 !important;
}

/* Ensure padding on both sides for password inputs to prevent overlap */
.custom-form .pass-input-wrap input[type="password"],
.custom-form .pass-input-wrap input[type="text"] {
    padding-left: 70px !important;
    padding-right: 70px !important;
}
