/* ============================================
   Auth Layout Structure (Theme-based)
   Matches Dhonu Theme Reference Design
   ============================================ */

/* Override any global body styles for auth pages */
body.authentication-bg {
    background-color: #f8f9fa !important;
    min-height: 100vh;
    background-image: none !important;
    background-attachment: initial !important;
}

body.authentication-bg::before {
    display: none !important;
}

.authentication-bg {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.auth-fluid {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-fluid-form-box {
    width: 100%;
    max-width: 420px;
}

/* Logo - Centered, outside card */
.auth-brand {
    margin-bottom: 24px;
    text-align: center;
}

.auth-brand .logo {
    display: inline-block;
    line-height: 1;
}

.auth-brand .logo img {
    display: inline-block;
}

.auth-brand .logo-light {
    display: none !important;
}

[data-bs-theme="dark"] .auth-brand .logo-dark {
    display: none !important;
}

[data-bs-theme="dark"] .auth-brand .logo-light {
    display: inline-block !important;
}

/* Card styling */
.auth-fluid-form-box .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.auth-fluid-form-box .card-body {
    padding: 40px;
}

/* Auth user heading */
.auth-user {
    margin-bottom: 24px;
    text-align: center;
}

.auth-user h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.auth-user p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 0;
}

/* Footer - Outside card, below */
.footer-alt {
    margin-top: 24px;
    text-align: center;
}

.footer-alt p {
    margin-bottom: 0;
    font-size: 13px;
}

.footer-alt a {
    color: #6c757d;
    text-decoration: none;
}

.footer-alt a:hover {
    color: #495057;
}

/* Password Toggle Icon Styling */
.input-group-text[data-password] {
    cursor: pointer;
    user-select: none;
    background-color: #fff;
    border-left: none;
}

.input-group-text[data-password] .password-eye {
    display: inline-block;
    line-height: 1;
}

.input-group-text[data-password] .password-eye i {
    font-size: 18px;
    color: #6c757d;
    transition: color 0.2s;
}

.input-group-text[data-password]:hover .password-eye i {
    color: #495057;
}

/* OTP Verification */
.otp-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #495057;
    transition: all 0.2s;
}

.otp-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.otp-input.filled {
    border-color: #0d6efd;
    background: #f8f9ff;
}

.otp-timer {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    color: #6c757d;
}

.otp-timer-time {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
}

/* OTP Resend Link - matches Call Us button styling */
#resendOtpLink {
    transition: opacity 0.2s, color 0.2s;
}

#resendOtpLink:hover:not([style*="pointer-events: none"]) {
    color: #495057 !important;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-fluid-form-box {
        max-width: 100%;
    }
    
    .auth-fluid-form-box .card-body {
        padding: 30px 20px;
    }
    
    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .otp-container {
        gap: 8px;
    }
}
