/* Neural Works AI - Modern Professional Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: #0f0f23;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, #667eea 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, #764ba2 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, #f093fb 0%, transparent 50%);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    padding: 60px 0;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.4rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Main Content */
main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 60px;
    margin: 40px auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h2 {
    font-size: 3.2rem;
    color: #1a202c;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    color: #4a5568;
    margin-bottom: 50px;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.feature {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.feature:hover::before {
    opacity: 0.05;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature > * {
    position: relative;
    z-index: 2;
}

.feature span {
    display: block;
    font-size: 48px;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
}

.feature p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Auth Section */
.auth-section {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: drift 30s linear infinite;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.auth-section > * {
    position: relative;
    z-index: 2;
}

.auth-section h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 800;
}

.auth-section p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 18px 50px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #f8fafc;
}

/* Auth Page Specific Styles */
.auth-container {
    max-width: 520px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.auth-logo {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.auth-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 15px;
    font-weight: 800;
}

.auth-subtitle {
    text-align: center;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.business-name {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px;
    border-radius: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 25px 0;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.1);
    font-size: 1.1rem;
}

.info-box {
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    padding: 30px;
    margin: 30px 0;
    border-radius: 18px;
    border-left: 5px solid #667eea;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    pointer-events: none;
}

.info-box > * {
    position: relative;
    z-index: 1;
}

.info-box h4 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 700;
}

.info-box p, .info-box ol {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.05rem;
}

.info-box ol {
    padding-left: 25px;
}

.info-box li {
    margin: 12px 0;
}

/* Auth Button */
.auth-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin: 35px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.auth-btn::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.6s;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
}

.auth-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-btn:disabled::before {
    display: none;
}

/* Loading States */
.loading {
    display: none;
    color: #4a5568;
    text-align: center;
}

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Steps */
.progress-steps {
    margin: 50px 0;
    font-size: 15px;
}

.step {
    margin: 20px 0;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    transition: all 0.3s ease;
}

.step.completed {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    color: #2f855a;
    border: 1px solid rgba(56, 178, 172, 0.2);
}

.step.completed::before {
    background: #38b2ac;
}

.step.current {
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    color: #2c5282;
    font-weight: 700;
    border: 1px solid rgba(102, 126, 234, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.step.current::before {
    background: #667eea;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
}

.step.pending {
    background: #f7fafc;
    color: #718096;
    border: 1px solid #e2e8f0;
}

.step.pending::before {
    background: #e2e8f0;
}

.step.error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #c53030;
    border: 1px solid rgba(197, 48, 48, 0.2);
}

.step.error::before {
    background: #e53e3e;
}

/* Error States */
.error {
    display: none;
    color: #c53030;
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    border-radius: 12px;
    border: 1px solid rgba(197, 48, 48, 0.2);
}

.error h4 {
    margin-bottom: 15px;
    font-weight: 700;
}

.error button {
    margin-top: 20px;
    padding: 12px 24px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.error button:hover {
    background: #c53030;
    transform: translateY(-2px);
}

/* Security Note */
.security-note {
    font-size: 0.95rem;
    color: #718096;
    margin-top: 50px;
    padding: 25px;
    background: #f7fafc;
    border-radius: 12px;
    line-height: 1.7;
    border: 1px solid #e2e8f0;
}

/* Security Sections */
.security-section {
    margin: 60px 0;
    text-align: center;
}

.security-section h3 {
    font-size: 2.2rem;
    color: #1a202c;
    margin-bottom: 40px;
    font-weight: 800;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.security-item {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    padding: 30px 25px;
    border-radius: 16px;
    border: 2px solid rgba(56, 178, 172, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(56, 178, 172, 0.2);
}

.security-item span {
    font-size: 36px;
    display: block;
    margin-bottom: 20px;
}

.security-item h4 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.security-item p {
    color: #4a5568;
    line-height: 1.6;
}

.trust-section {
    margin: 60px 0;
    text-align: center;
}

.trust-section h3 {
    font-size: 2.2rem;
    color: #1a202c;
    margin-bottom: 40px;
    font-weight: 800;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat {
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    padding: 30px 20px;
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    color: #4a5568;
    font-weight: 600;
}

.compliance-section {
    margin: 50px 0;
    text-align: center;
}

.compliance-section h4 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 30px;
    font-weight: 700;
}

.compliance-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.badge span {
    font-size: 24px;
}

.badge div {
    text-align: left;
}

.badge strong {
    display: block;
    color: #2d3748;
    font-weight: 700;
}

.badge small {
    color: #718096;
    font-size: 0.9rem;
}

.security-guarantee {
    margin: 60px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    main {
        padding: 40px 30px;
        margin: 30px auto;
        border-radius: 20px;
    }
    
    .auth-container {
        padding: 40px 30px;
        margin: 40px auto;
        border-radius: 20px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .logo h1 {
        font-size: 2.8rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature {
        padding: 35px 25px;
    }
    
    .auth-section {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .auth-section h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 30px 25px;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .auth-btn {
        padding: 18px 30px;
        font-size: 1.1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .logo h1 {
        font-size: 2.2rem;
    }
}