/* WhatsApp OTP Login - CSS */

.wa-otp-container {
    max-width: 420px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wa-otp-hidden {
    display: none !important;
}

/* Header */
.wa-otp-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.wa-otp-icon {
    width: 48px;
    height: 48px;
    background: #25D366;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-otp-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px;
}

.wa-otp-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Fields */
.wa-otp-field {
    margin-bottom: 18px;
}

.wa-otp-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
}

.wa-otp-phone-row {
    display: flex;
    gap: 10px;
}

.wa-otp-country-code {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    font-weight: 500;
}

.wa-otp-input {
    flex: 1;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
    background: #fff;
}

.wa-otp-input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.12);
}

/* OTP Boxes */
.wa-otp-otp-row {
    display: flex;
    gap: 10px;
}

.wa-otp-box {
    width: 100%;
    max-width: 54px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    outline: none;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.wa-otp-box:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.12);
}

/* Buttons */
.wa-otp-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s, transform 0.1s;
    margin-bottom: 12px;
}

.wa-otp-btn:active {
    transform: scale(0.98);
}

.wa-otp-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.wa-otp-btn-send {
    background: #25D366;
    color: #fff;
}

.wa-otp-btn-send:hover:not(:disabled) {
    background: #20bd5a;
}

.wa-otp-btn-verify {
    background: #128C7E;
    color: #fff;
}

.wa-otp-btn-verify:hover:not(:disabled) {
    background: #0f7a6d;
}

/* Note */
.wa-otp-note {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 0;
}

/* Back button */
.wa-otp-back {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    padding: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-otp-back:hover {
    color: #333;
}

/* Resend */
.wa-otp-resend {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 0;
}

.wa-otp-resend-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

/* Messages */
.wa-otp-message {
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    font-weight: 500;
}

.wa-otp-error {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5c6c6;
}

.wa-otp-success {
    background: #f0fff5;
    color: #1a7340;
    border: 1px solid #a8e6c0;
}

.wa-otp-field-error {
    display: block;
    font-size: 12px;
    color: #c0392b;
    margin-top: 6px;
}

/* Success state */
.wa-otp-success-state {
    text-align: center;
    padding: 24px 0;
}

.wa-otp-success-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #16a34a;
    margin: 0 auto 16px;
}

.wa-otp-redirecting {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .wa-otp-box {
        height: 50px;
        font-size: 20px;
        max-width: 46px;
    }
    .wa-otp-otp-row {
        gap: 8px;
    }
}
