.wp-otp-auth-container {
    display: block;
    width: 100%;
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
}

.wp-otp-auth-modal {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 6px rgb(0 0 0 / .1);
    overflow: hidden;
    box-sizing: border-box;
    display: block;
}

.wp-otp-auth-container .decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background: #e0e7ff;
    border-radius: 50%;
    opacity: .6;
    z-index: 0;
}

.wp-otp-auth-container .top-right {
    top: -30px;
    right: -30px;
    transform: scale(.8);
}

.wp-otp-auth-container .bottom-left {
    bottom: -30px;
    left: -30px;
    transform: scale(.8);
}

.wp-otp-auth-container h1 {
    font-size: 24px;
    margin: 0 0 8px 0;
    position: relative;
    color: #000;
}

.wp-otp-auth-container .subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.wp-otp-auth-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 16px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    line-height: normal;
}

.wp-otp-auth-container button {
    width: 100%;
    padding: 12px;
    background: #18181b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    line-height: normal;
    height: auto;
}

.wp-otp-auth-container button:hover {
    background: #2d2d32;
}

.wp-otp-auth-container button:disabled {
    background: #ddd;
    cursor: not-allowed;
}

.wp-otp-auth-container .terms {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 16px;
}

.wp-otp-auth-container .terms a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #666;
}

.wp-otp-auth-container .terms a:hover {
    color: #333;
    border-bottom-color: #333;
}

.wp-otp-auth-container .timer {
    font-size: 12px;
    color: #666;
    margin-top: 12px;
    text-align: center;
}

.wp-otp-auth-container .success-message {
    color: #22c55e;
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wp-otp-auth-container .success-text {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.wp-otp-auth-container .success-svg {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    display: flex;
    justify-content: center;
}

.wp-otp-auth-container .success-svg svg {
    position: absolute;
    width: 100%;
    height: 4px;
}

.wp-otp-auth-container .success-svg path {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: drawLine 0.6s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.wp-otp-auth-container .otp-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.wp-otp-auth-container .otp-input {
    width: 40px;
    height: 40px;
    padding: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.wp-otp-auth-container .otp-input:focus {
    outline: none;
    border-color: #18181b;
    box-shadow: 0 0 0 2px rgb(24 24 27 / .1);
}

.wp-otp-auth-container .step {
    display: none;
    position: relative;
    z-index: 1;
}

.wp-otp-auth-container .step.active {
    display: block;
}

.wp-otp-auth-container input:focus {
    outline: none;
    border-color: #18181b;
    box-shadow: 0 0 0 2px rgb(24 24 27 / .1);
}

.wp-otp-auth-container .subtitle a {
    color: #18181b;
    text-decoration: none;
    font-weight: 500;
}

.wp-otp-auth-container .subtitle a:hover {
    text-decoration: underline;
}

.wp-otp-auth-container .iti {
    width: 100%;
    margin-bottom: 16px;
}

.wp-otp-auth-container .iti__flag-container {
    z-index: 2;
}

.wp-otp-auth-container .iti__selected-flag {
    border-radius: 6px 0 0 6px;
}

.wp-otp-auth-container .iti__country-list {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgb(0 0 0 / .1);
}

.wp-otp-auth-container .iti input[type=tel] {
    padding-left: 90px!important;
}

.wp-otp-auth-container .phone-invalid {
    border-color: #ff4444!important;
}

.wp-otp-auth-container .phone-valid {
    border-color: #22c55e!important;
}

/* Loader Styles */
.wp-otp-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 20px;
}

.wp-otp-loader.active {
    display: flex;
}

.wp-otp-loader .spinner {
    animation: rotate 2s linear infinite;
    width: 50px;
    height: 50px;
}

.wp-otp-loader .spinner .path {
    stroke: #3b82f6;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Message Styles */
.wp-otp-message {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1001;
    text-align: center;
    max-width: 80%;
    pointer-events: none;
}

.wp-otp-message.show {
    opacity: 1;
}

.wp-otp-message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.wp-otp-message.success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Logged in user styles */
.wp-otp-logged-in {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    text-align: center;
}

.wp-otp-message-content {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #374151;
}

.wp-otp-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.wp-otp-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: #fff;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.wp-otp-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.wp-otp-logout {
    background: #ef4444;
}

.wp-otp-logout:hover {
    background: #dc2626;
}

@media (max-width: 640px) {
    .wp-otp-logged-in {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .wp-otp-buttons {
        flex-direction: column;
    }
    
    .wp-otp-button {
        width: 100%;
        text-align: center;
    }
}
