/**
 * NetSuite Customer Registration - WooCommerce Registration Styles
 *
 * Styles for the registration loading overlay and feedback UI.
 *
 * @package NetSuite_Customer_Registration
 */

/* ==========================================================================
   Registration Overlay
   ========================================================================== */

.nscr-registration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nscr-registration-overlay.nscr-overlay-visible {
    opacity: 1;
}

.nscr-overlay-content {
    text-align: center;
    padding: 48px 40px;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Spinner
   ========================================================================== */

.nscr-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    position: relative;
}

.nscr-spinner-inner {
    width: 100%;
    height: 100%;
    border: 3px solid #e5e7eb;
    border-top-color: #f9c457;
    border-radius: 50%;
    animation: nscr-spin 0.8s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: transparent;
}

@keyframes nscr-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nscr-spinner.nscr-spinner-success .nscr-spinner-inner {
    animation: none;
    border-color: #059669;
    background: #059669;
    color: white;
    font-size: 28px;
    font-weight: bold;
}

/* ==========================================================================
   Status Message
   ========================================================================== */

.nscr-status-message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #3d3d3d;
    font-weight: 500;
    font-family: Commissioner, ui-sans-serif, system-ui, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* ==========================================================================
   Redirecting Indicator
   ========================================================================== */

.nscr-redirecting {
    margin: 16px 0 0;
    font-size: 0.875rem;
    color: #95a5a6;
    font-weight: 500;
    font-family: Commissioner, ui-sans-serif, system-ui, sans-serif;
}

.nscr-dots span {
    animation: nscr-dot-pulse 1.4s infinite both;
}

.nscr-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.nscr-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes nscr-dot-pulse {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}

/* ==========================================================================
   Form Error Styling
   ========================================================================== */

.nscr-form-error {
    margin-bottom: 20px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 480px) {
    .nscr-overlay-content {
        padding: 32px 20px;
        margin: 0 16px;
    }

    .nscr-spinner {
        width: 50px;
        height: 50px;
    }

    .nscr-status-message {
        font-size: 14px;
    }
}
