/* OTP Verification & Tab styles */

.login-form-main-wrapper input{
	
	    border-radius: 0 !important;
}

/* Tab Buttons */
.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
	    flex-direction: row-reverse;
}
.auth-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}
.auth-tab-btn:hover {
    color: #DD3333;
}
.auth-tab-btn.active {
    color: #DD3333;
}
.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #DD3333;
    border-radius: 3px 3px 0 0;
}

/* Form Sections */
.auth-form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}
.auth-form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
div#registration-form-alert a {
    color: #721c24 !important;
    text-decoration: underline;
}

/* OTP Input Boxes */
.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}
.otp-number-input {
    width: 45px;
    height: 48px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    border: 2px solid #ced4da;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}
.otp-number-input:focus {
    border-color: #DD3333;
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.25);
    outline: none;
}

/* Modal Overlay Styles */
.otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(29, 29, 29, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.otp-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.otp-modal-box {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 460px;
    padding: 35px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.otp-modal-overlay.active .otp-modal-box {
    transform: scale(1);
}
.otp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s ease;
}
.otp-modal-close:hover {
    color: #DD3333;
}
.otp-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 10px;
}
.otp-modal-desc {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Button & Alert styles */
.btn-otp-action {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 5px 30px;
    font-size: 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-otp-primary {
    color: #DD3333;
    background-color: transparent;  
    border-color: #DD3333;
	   text-transform: capitalize;
}
.btn-otp-primary:hover {
    background-color: #DD3333;
    border-color: #DD3333;
	color:#ffffff !important;
}
.btn-otp-primary:disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
}
.btn-otp-secondary {
    color: #DD3333;
    background-color: transparent;
    border-color: #DD3333;
    margin-top: 15px;
}
.btn-otp-secondary:hover {
    color: #fff;
    background-color: #DD3333;
}
.otp-alert {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
    display: none;
    animation: fadeIn 0.3s ease;
}
.otp-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.otp-alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.otp-timer-container {
    margin-top: 15px;
    font-size: 13px;
    color: #6c757d;
}
.otp-resend-link {
    color: #DD3333;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}
.otp-resend-link.disabled {
    color: #aaa;
    text-decoration: none;
    cursor: not-allowed;
}
.otp-loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: .15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    margin-right: 5px;
}
@keyframes spinner-border {
    to { transform: rotate(360deg); }
} 

/* Full-screen Loader Overlay */
.ep-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.ep-loader-overlay.active {
    display: flex;
}
.ep-loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e9ecef;
    border-top: 5px solid #DD3333;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    margin-bottom: 20px;
}
.ep-loader-text {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1d;
}


.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active{
	background-color:#DD3333 !important;
	border-color:#DD3333 !important;
	    box-shadow: 0px 1px 10px #DD3333 !important;
}


@media(max-width:1024px){
	
	div#registration-otp-modal {
    padding: 0 15px;
}
}

@media(max-width:360px){
	.auth-tab-btn{
		    padding: 10px 5px;
			   
	}
	
	.otp-number-input{
		width:38px;
		height:40px;
	}
}