/* ==========================================================================
   WA OTP Verify - Public / Login Styles
   ========================================================================== */

.wa-otp-login-section {
    margin-top: 12px;
}

.wa-otp-divider-line {
    display: flex;
    align-items: center;
    margin: 16px 0 12px;
    gap: 10px;
}

.wa-otp-divider-line::before,
.wa-otp-divider-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.wa-otp-divider-line span {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.wa-otp-code-input {
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 8px !important;
    font-family: 'Courier New', monospace !important;
    padding: 10px 14px !important;
}

.wa-otp-code-input::placeholder {
    letter-spacing: 6px;
    color: #ccc;
}

.wa-otp-msg {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
}

.wa-otp-msg.success {
    display: block;
    background: #f0fdf4;
    color: #128C7E;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.wa-otp-msg.error {
    display: block;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.wa-otp-send-btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px !important;
    padding: 8px 16px !important;
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wa-otp-send-btn:hover {
    background: #128C7E !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

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

.wa-otp-login-notice {
    background: #f0fdf4;
    padding: 10px 14px;
    border-radius: 6px;
    border-left: 4px solid #25D366;
    color: #075E54;
    font-size: 13px;
    line-height: 1.5;
}

.wa-otp-register-section {
    margin-top: 8px;
}

.wa-otp-countdown {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    text-align: center;
}

/* ==========================================================================
   OTP Verification Page (Two-Step Login)
   ========================================================================== */

.wa-otp-verify-section {
    margin-top: -10px;
}

.wa-otp-verify-header {
    text-align: center;
    padding: 0 0 20px;
}

.wa-otp-verify-icon {
    display: flex;
    margin: 0 auto 12px;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.wa-otp-verify-title {
    margin: 0 0 6px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
}

.wa-otp-verify-desc {
    margin: 0 !important;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.wa-otp-verify-desc strong {
    color: #075E54;
    font-weight: 600;
}

.wa-otp-verify-form-wrap {
    margin-top: 4px;
}

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

.wa-otp-verify-section .wa-otp-code-input {
    width: 100% !important;
    box-sizing: border-box;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wa-otp-verify-section .wa-otp-code-input:focus {
    border-color: #25D366 !important;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15) !important;
    outline: none !important;
}

.wa-otp-verify-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-top: 14px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.wa-otp-verify-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
}

.wa-otp-verify-btn:active {
    transform: translateY(0);
}

.wa-otp-verify-footer {
    margin-top: 16px;
    text-align: center;
}

.wa-otp-resend-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: transparent;
    color: #128C7E;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wa-otp-resend-btn:hover:not(:disabled) {
    background: #f0fdf4;
    border-color: #25D366;
}

.wa-otp-resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    color: #999;
}

.wa-otp-back-link {
    display: inline-block;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.wa-otp-back-link:hover {
    color: #128C7E;
}

/* Error message on OTP verify page */
.wa-otp-verify-section .wa-otp-msg {
    margin-top: 10px;
    text-align: center;
}

/* Loading spinner for verify button */
.wa-otp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wa-otp-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

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

.wa-otp-verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}