/* OTP Login Styles */

/* Message Container */
.message-container {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

.message-container.error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.message-container.success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.message-container.info {
    background-color: #e8f4f8;
    color: #0288d1;
    border: 1px solid #b3d9f2;
}

.message-container #message-text {
    margin: 0;
    font-weight: 500;
}

/* Login Step Animations */
.login-step {
    animation: fadeIn 0.4s ease-out;
}

/* OTP Step Hint Text */
#otp-step .form-group span {
    font-size: 13px;
    font-weight: 500;
}

/* OTP Input Styling */
.otp-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 600;
}

.otp-input::placeholder {
    font-size: 14px;
    letter-spacing: normal;
    font-weight: 400;
}

/* Secondary Button (Resend OTP) */
.custom_btn_secondary {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    color: #0070c0;
    border: 2px solid #0070c0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.custom_btn_secondary:hover {
    background-color: #0070c0;
    color: white;
}

.custom_btn_secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Text Button (Change Phone Number) */
.custom_btn_text {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    color: #666;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: underline;
}

.custom_btn_text:hover {
    color: #0070c0;
}

/* Button Loading State */
.custom_btn.loading,
.custom_btn_secondary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.custom_btn.loading::after,
.custom_btn_secondary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.custom_btn_secondary.loading::after {
    border: 3px solid rgba(0, 112, 192, 0.3);
    border-top-color: #0070c0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .otp-input {
        font-size: 20px;
        letter-spacing: 6px;
    }
}

