.pure-otp-auth-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
}

.pure-otp-auth-trigger.is-authenticated {
    color: #059669;
}

.pure-otp-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.pure-otp-modal.is-visible {
    display: flex;
}

.pure-otp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.pure-otp-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: pureOtpFadeIn 0.25s ease;
}

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

.pure-otp-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
}

.pure-otp-modal-close:hover {
    color: #111827;
}

.pure-otp-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.pure-otp-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.pure-otp-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.pure-otp-tab {
    flex: 1;
    padding: 0.625rem 1rem;
    border: none;
    background: #fff !important;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280 !important;
    transition: background 0.15s, color 0.15s;
}

.pure-otp-tab:not(:last-child) {
    border-right: 1px solid #e5e7eb;
}

.pure-otp-tab.is-active {
    background: var( --e-global-color-primary ) !important;
    color: #fff !important;
    font-weight: 600;
}

.pure-otp-step {
    display: block;
}

.pure-otp-step-success {
    text-align: center;
    padding: 1.5rem 0;
}

.pure-otp-step-success p {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    color: #374151;
}

.pure-otp-success-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pure-otp-field {
    margin-bottom: 1rem;
}

.pure-otp-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pure-otp-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.pure-otp-input-code {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.5em;
    font-weight: 600;
}

.pure-otp-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.pure-otp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pure-otp-btn-primary {
    background: #3b82f6;
    color: #fff;
}

.pure-otp-btn-primary:hover:not(:disabled) {
    background: #2563eb;
}

.pure-otp-sent-to {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1rem;
    text-align: center;
}

.pure-otp-resend {
    text-align: center;
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
}

.pure-otp-resend a {
    color: #3b82f6;
    text-decoration: none;
}

.pure-otp-resend a:hover {
    text-decoration: underline;
}

.pure-otp-message {
    margin-top: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.pure-otp-message--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.pure-otp-message--success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.pure-otp-no-scroll {
    overflow: hidden;
}

@media (max-width: 480px) {
    .pure-otp-modal-content {
        padding: 1.5rem;
        border-radius: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        max-width: 100%;
    }
}
