/* === OTP Login Form - Default Styles === */

.otp-login-form {
    max-width: 420px;
    margin: 40px auto;
    padding: 32px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.otp-tab:focus,
.otp-tab:active {
    outline: none;
    box-shadow: none;
}


.otp-login-form h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #111827;
    text-align: center;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 15px;
    color: #374151;
    margin-bottom: 6px;
}

.form-field input.input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    font-size: 15px;
    color: #111827;
}

.form-field input.input:focus {
    border-color: #6366f1;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px #6366f1;
}

/* Buttons */

.button {
    display: inline-block;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
}

.button-primary {
    background-color: #4f46e5;
    color: white;
}

.button-primary:hover {
    background-color: #4338ca;
}

.button-secondary {
    background-color: #e5e7eb;
    color: #111827;
}

.button-secondary:hover {
    background-color: #d1d5db;
}

.button.small {
    padding: 6px 12px;
    font-size: 14px;
}

/* Tabs */

/* Tab Container */
/* Tab Container */
.otp-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    gap: 4px;
}

/* Tab Button Base */
.otp-tab {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 8px 20px;
    border: 1px solid transparent;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

/* Hover */
.otp-tab:hover {
    background-color: #e5e7eb;
    color: #111827;
}

/* Active Tab */
.otp-tab.active {
    background-color: #ffffff;
    color: #4f46e5;
    border: 1px solid #e5e7eb;
    border-bottom: 2px solid white;
    font-weight: 600;
    position: relative;
    z-index: 1;
}



/* Feedback */

.otp-feedback {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.otp-feedback.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #34d399;
}

.otp-feedback.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.otp-feedback.loading {
    background-color: #fefce8;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Links */

.otp-login-form a {
    color: #4f46e5;
    text-decoration: underline;
    font-size: 14px;
    display: inline-block;
    margin-top: 12px;
}

.form-lost-password {
    text-align: center;
}

.form-lost-password,
.otp-login-form a {
    font-size: 13px;
    color: #4b5563;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.otp-feedback {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-top: 16px;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.otp-feedback.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #34d399;
}

.otp-feedback.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.otp-feedback.loading {
    background-color: #fefce8;
    color: #92400e;
    border: 1px solid #fde68a;
}

.otp-feedback.show {
    display: block;
    animation: fadeSlideIn 0.4s ease forwards;
}
