/* ========================================
   CSS VARIABLES & RESET
   ======================================== */

:root {
    /* Color Palette - Professional Tech Theme */
    --color-primary: #0066ff;
    --color-primary-dark: #0052cc;
    --color-primary-light: #3385ff;
    --color-secondary: #00d4aa;
    --color-accent: #ff6b35;
    
    /* Neutrals */
    --color-dark: #0a0e1a;
    --color-dark-lighter: #151a2e;
    --color-dark-medium: #1f2740;
    --color-gray: #64748b;
    --color-gray-light: #94a3b8;
    --color-white: #ffffff;
    --color-off-white: #f8fafc;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d4aa 100%);
    --gradient-mesh: radial-gradient(at 0% 0%, rgba(0, 102, 255, 0.15) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, rgba(0, 212, 170, 0.15) 0px, transparent 50%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.25);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-dark);
    background: var(--color-off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   LAYOUT - MAIN WRAPPER
   ======================================== */

.main-wrapper {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* ========================================
   HERO PANEL - LEFT SIDE
   ======================================== */

.hero-panel {
    flex: 1;
    min-width: 45%;
    background: linear-gradient(135deg, #0a0e1a 0%, #1f2740 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--space-xl);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.5;
    animation: meshMove 20s ease-in-out infinite alternate;
}

@keyframes meshMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand Badge */
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    color: var(--color-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.title-line {
    display: block;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1s ease-out 0.7s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero Description */
.hero-description {
    font-size: 1.125rem;
    color: var(--color-gray-light);
    margin-bottom: var(--space-xl);
    animation: fadeIn 1s ease-out 0.9s backwards;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    animation: fadeIn 1s ease-out 1.1s backwards;
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-white);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray-light);
    margin-top: 0.25rem;
}

/* Testimonial */
.testimonial {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    animation: fadeIn 1s ease-out 1.3s backwards;
}

.testimonial-icon {
    font-size: 2rem;
    color: var(--color-primary-light);
    margin-bottom: var(--space-sm);
}

.testimonial-text {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--color-white);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--color-gray-light);
    font-size: 0.875rem;
}

/* Geometric Shapes */
.geometric-shape {
    position: absolute;
    border-radius: var(--radius-lg);
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--color-secondary);
    bottom: 100px;
    left: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--color-accent);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, 20px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, -20px) rotate(5deg); }
}

/* ========================================
   FORM PANEL - RIGHT SIDE
   ======================================== */

.form-panel {
    flex: 1;
    min-width: 55%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    overflow-y: auto;
}

.form-container {
    width: 100%;
    max-width: 600px;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Brand Header */
.brand-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-dark);
}

.brand-tagline {
    color: var(--color-gray);
    font-size: 0.95rem;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
}

.form-subtitle {
    color: var(--color-gray);
    font-size: 1rem;
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    border: 2px solid var(--color-dark-medium);
    background: transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: all var(--transition-base);
}

.social-btn:hover {
    background: var(--color-off-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.google-btn:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.facebook-btn:hover {
    border-color: #1877f2;
    color: #1877f2;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: var(--space-xl) 0;
    color: var(--color-gray);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 var(--space-md);
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.required {
    color: var(--color-accent);
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--color-gray);
    font-size: 1.25rem;
    pointer-events: none;
    transition: color var(--transition-base);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-dark);
    background: var(--color-white);
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--color-primary);
}

.form-input::placeholder {
    color: var(--color-gray-light);
}

/* Select Styling */
.select-wrapper {
    position: relative;
}

.form-select {
    appearance: none;
    cursor: pointer;
    padding-right: 3rem;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    pointer-events: none;
    color: var(--color-gray);
    transition: transform var(--transition-base), color var(--transition-base);
}

.select-wrapper:focus-within .select-arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* Textarea */
.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

/* Error States */
.form-input.error {
    border-color: var(--color-accent);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.error-message.show {
    display: block;
}

/* Form Actions */
.form-actions {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.loading .btn-text,
.btn-primary.loading .btn-icon {
    opacity: 0;
}

.btn-loader {
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-primary.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-secondary {
    background: transparent;
    color: var(--color-gray);
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: var(--color-off-white);
    border-color: var(--color-gray-light);
}

/* Privacy Notice */
.privacy-notice {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-gray);
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.privacy-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-base);
}

.privacy-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Form Footer */
.form-footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: var(--color-gray);
    font-size: 0.875rem;
}

.footer-links {
    margin-top: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-gray);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Alert Messages */
#alert-container {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 9999;
    max-width: 400px;
}

.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: #10b981;
    color: var(--color-white);
}

.alert-error {
    background: var(--color-accent);
    color: var(--color-white);
}

.alert-icon {
    font-size: 1.5rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
    }
    
    .hero-panel {
        min-height: 60vh;
        min-width: 100%;
    }
    
    .form-panel {
        min-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-panel {
        min-height: 50vh;
        padding: var(--space-lg);
    }
    
    .form-panel {
        padding: var(--space-lg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
    
    .stat-item {
        padding: var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .hero-panel {
        padding: var(--space-md);
    }
    
    .form-panel {
        padding: var(--space-md);
    }
    
    .brand-logo {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .stats-grid {
        gap: 0.5rem;
    }
    
    #alert-container {
        left: var(--space-sm);
        right: var(--space-sm);
        max-width: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .hero-panel,
    .social-login,
    .form-actions,
    .form-footer {
        display: none;
    }
    
    .form-panel {
        width: 100%;
    }
}