/* Forgot Password Modal Styling */
.forgot-step {
    display: none;
}

.forgot-step.active {
    display: block;
}

/* OTP Input Styling for Modal */
.otp-input-container .forgot-otp-digit {
    width: 45px !important;
    height: 45px !important;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.otp-input-container .forgot-otp-digit:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.otp-input-container .forgot-otp-digit.is-invalid {
    border-color: #dc3545;
}

.otp-input-container .forgot-otp-digit.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Modal Specific Styling */
#forgotPasswordModal .modal-body {
    min-height: 300px;
}

#forgotPasswordModal .form-control {
    padding: 10px 15px;
}

#forgotPasswordModal .btn {
    padding: 10px 20px;
    font-weight: 500;
}

#forgotPasswordModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

#forgotPasswordModal .modal-header {
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

#forgotPasswordModal .modal-title {
    font-weight: 600;
    color: #333;
}






/* Login Steps */
.login-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.login-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Type Selector */
.btn-group .btn {
    flex: 1;
}

.btn-check:checked + .btn {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* OTP Digits */
.otp-input-container {
    margin: 0 auto;
    max-width: 300px;
}

.otp-digit {
    width: 45px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.otp-digit:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.otp-digit.is-invalid {
    border-color: #dc3545;
}

.otp-digit:not(:placeholder-shown) {
    border-color: #198754;
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    font-size: 0.875em;
    color: #dc3545;
}

/* Show Password Button */
.show-password-button {
    z-index: 5;
    cursor: pointer;
}

.show-password-button:hover {
    color: #0d6efd !important;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-content {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Blur effect for the page */
body.loading {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

/* Responsive */
@media (max-width: 576px) {
    .otp-digit {
        width: 40px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .btn-group .btn {
        font-size: 0.9rem;
        padding: 0.375rem 0.5rem;
    }
    
    .loading-content {
        padding: 20px;
    }
}
