/* Enhanced Affiliate Registration Page Styles */
/* Add this CSS to your style.css file or create a separate CSS file */

/* Override default theme styles for registration page */
.page-template-default .ars-registration-container,
.page .ars-registration-container,
body.page .ars-registration-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100vw;
    position: relative;
    overflow-x: hidden;
}

/* Override any theme container constraints */
.ars-registration-container {
    max-width: none !important;
    margin: 0 !important;
    padding-top: 20px;
    padding-bottom: 0 !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Background pattern overlay */
.ars-registration-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}


/* Main content wrapper */
.ars-registration-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 120px);
}

/* Left side - Hero content */
.ars-hero-section {
    color: white;
    padding: 40px 0;
}

.ars-registration-header {
    text-align: left;
    margin-bottom: 40px;
}

.ars-registration-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ars-registration-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Benefits redesign for hero section */
.ars-benefits {
    margin-top: 50px;
}

.ars-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.ars-benefit-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ars-benefit-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
}

.ars-benefit-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: block;
}

.ars-benefit-item h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.ars-benefit-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* Right side - Form section */
.ars-form-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ars-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.ars-form-section h3 {
    color: #1f2937;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
    position: relative;
}

.ars-form-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 1px;
}

/* Unified Form styling - No sections */
.ars-form-group {
    margin-bottom: 25px;
}

.ars-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.ars-form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #1f2937;
}

.ars-form-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.ars-form-group input::placeholder {
    color: #9ca3af;
}

/* Remove section styling for unified form */
.ars-form .ars-form-section {
    margin-bottom: 0;
    padding-bottom: 0;
}

.ars-form .ars-form-section h3 {
    display: none; /* Hide section headers */
}

.ars-form .ars-form-section:not(:last-child) {
    border-bottom: none;
    margin-bottom: 0;
}

/* Affiliate code verification styling */
.ars-affiliate-code-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.ars-affiliate-code-wrapper input {
    flex: 1;
}

.ars-verify-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.ars-verify-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.ars-verify-btn:disabled {
    background: #d1d5db;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Status messages */
.ars-status-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.ars-status-message .success {
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.ars-status-message .error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

/* Terms checkbox */
.ars-terms {
    margin: 30px 0;
}

.ars-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4b5563;
}

.ars-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #6366f1;
}

.ars-checkbox-label a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.ars-checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit button */
.ars-form-actions {
    text-align: center;
    margin-top: 35px;
}

.ars-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 220px;
    position: relative;
    overflow: hidden;
}

.ars-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ars-btn-primary:hover::before {
    left: 100%;
}

.ars-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.ars-btn-primary:disabled {
    background: #d1d5db;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Messages */
.ars-message {
    margin-top: 25px;
    text-align: center;
}

.ars-message .success {
    color: #065f46;
    background: #d1fae5;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #a7f3d0;
    font-weight: 600;
}

.ars-message .error {
    color: #991b1b;
    background: #fee2e2;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #fecaca;
    font-weight: 600;
}

/* Login link */
.ars-login-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.ars-login-link p {
    color: #6b7280;
    margin: 0;
}

.ars-login-link a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.ars-login-link a:hover {
    text-decoration: underline;
}

/* Loading states */
.loading-redirect {
    margin-top: 15px;
    padding: 15px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
    text-align: center;
    font-style: italic;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Error states */
.error-message {
    display: block;
    margin-top: 8px;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 500;
}

input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Form validation indicators */
.ars-form-group input:valid {
    border-color: #10b981;
}

.ars-form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Responsive design */
@media (max-width: 1024px) {
    .ars-registration-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px;
    }
    
    .ars-hero-section {
        text-align: center;
        padding: 20px 0;
    }
    
    .ars-registration-header h2 {
        font-size: 2.8rem;
    }
    
    .ars-benefit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ars-registration-container {
        padding: 40px 15px !important;
    }
    
    .ars-registration-header h2 {
        font-size: 2.2rem;
    }
    
    .ars-registration-header p {
        font-size: 1.1rem;
    }
    
    .ars-benefit-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ars-form-section {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .ars-affiliate-code-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .ars-verify-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ars-registration-header h2 {
        font-size: 1.8rem;
    }
    
    .ars-form-section {
        padding: 25px 20px;
    }
    
    .ars-btn-primary {
        width: 100%;
        padding: 16px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .ars-form-section {
        background: rgba(31, 41, 55, 0.95);
        color: white;
    }
    
    .ars-form-section h3 {
        color: white;
    }
    
    .ars-form-group label {
        color: #e5e7eb;
    }
    
    .ars-form-group input {
        background: rgba(55, 65, 81, 0.8);
        border-color: #4b5563;
        color: white;
    }
    
    .ars-form-group input::placeholder {
        color: #9ca3af;
    }
}

/* Override any theme-specific styles that might interfere */
.ars-registration-container,
.ars-registration-container * {
    box-sizing: border-box;
}

.ars-registration-container h1,
.ars-registration-container h2,
.ars-registration-container h3,
.ars-registration-container h4,
.ars-registration-container h5,
.ars-registration-container h6 {
    line-height: 1.2;
}

.ars-registration-container p {
    line-height: 1.6;
}

/* Ensure the registration container takes full width */
body.page .ars-registration-container,
.page .ars-registration-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Override theme container styles */
.page-content,
.entry-content {
    padding: 0 !important;
    margin: 0 !important;
}
