/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

:root {
    --primary-color: #FFFFFF;
    --secondary-color: #0A0A0A;
    --text-color: #A7AABB;
    --bg-color: #060606;
    --accent-color: #A93E17;
    --accent-secondary-color: #15399A;
    --divider-color: #FFFFFF0F;
    --dark-divider-color: #FFFFFF33;
    --error-color: rgb(230, 87, 87);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --default-font: "Manrope", sans-serif;
}

body {
    font-family: var(--default-font);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    height: 100vh;
    overflow: hidden;
}

/* Main Container */
.signup-container {
    display: flex;
    height: 100vh;
}

/* Left Side - Signup Form */
.signup-section {
    flex: 2;
    max-width: 800px;
    background: linear-gradient(145deg, var(--primary-color) 0%, #fafbfc 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(6, 6, 6, 0.05);
    overflow-y: auto;
}

.signup-content {
    width: 100%;
    max-width: 500px;
    padding: 20px 0;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.logo {
    height: 40px;
    width: auto;
}

/* Welcome Header */
.welcome-header {
    margin-bottom: 32px;
}

.welcome-header h1 {
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.welcome-header p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.5;
    opacity: 0.8;
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(167, 170, 187, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: rgba(167, 170, 187, 0.2);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.step-title {
    font-size: 12px;
    color: var(--text-color);
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(169, 62, 23, 0.3);
}

.step.active .step-title {
    color: var(--accent-color);
    opacity: 1;
}

.step.completed .step-number {
    background: var(--success-color);
    color: var(--primary-color);
}

.step.completed .step-title {
    color: var(--success-color);
    opacity: 1;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Styles */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #404040 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid rgba(167, 170, 187, 0.2);
    border-radius: 8px;
    font-size: 16px;
    color: var(--secondary-color);
    background: linear-gradient(145deg, var(--primary-color) 0%, #fdfdfd 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(6, 6, 6, 0.02);
    font-family: var(--default-font);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(169, 62, 23, 0.1), 0 4px 16px rgba(169, 62, 23, 0.05);
    background: var(--primary-color);
}

.input-wrapper input::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

.input-icon {
    position: absolute;
    left: 16px;
    background: linear-gradient(135deg, var(--text-color) 0%, #9da0b1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    z-index: 1;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.toggle-password:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: scale(1.1);
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 8px;
    height: 4px;
    background: rgba(167, 170, 187, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength.weak {
    width: 25%;
    background: var(--error-color);
}

.password-strength.fair {
    width: 50%;
    background: var(--warning-color);
}

.password-strength.good {
    width: 75%;
    background: #3b82f6;
}

.password-strength.strong {
    width: 100%;
    background: var(--success-color);
}

.password-requirements {
    margin-top: 4px;
}

.password-requirements small {
    color: var(--text-color);
    font-size: 12px;
    opacity: 0.7;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.next-btn,
.back-btn,
.complete-btn,
.signup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    font-family: var(--default-font);
}

.next-btn,
.complete-btn,
.signup-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 50%, var(--accent-color) 100%);
    background-size: 200% 200%;
    color: var(--primary-color);
    flex: 1;
    box-shadow: 0 4px 16px rgba(169, 62, 23, 0.2);
    position: relative;
    overflow: hidden;
}

.next-btn::before,
.complete-btn::before,
.signup-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.5s ease;
}

.next-btn:hover,
.complete-btn:hover,
.signup-btn:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(169, 62, 23, 0.3), 0 4px 8px rgba(21, 57, 154, 0.15);
}

.next-btn:hover::before,
.complete-btn:hover::before,
.signup-btn:hover::before {
    left: 100%;
}

/* Signup Button Specific Styles */
.signup-btn {
    width: 100%;
    margin-top: 24px;
    font-size: 16px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.signup-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(169, 62, 23, 0.2);
}

.signup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 16px rgba(169, 62, 23, 0.1);
}

.signup-btn:disabled:hover {
    transform: none;
    background-position: 0% 0;
}

.signup-btn:disabled::before {
    display: none;
}

.back-btn {
    background: rgba(167, 170, 187, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(167, 170, 187, 0.2);
    min-width: 120px;
}

.back-btn:hover {
    background: rgba(167, 170, 187, 0.15);
    color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Completion Content */
.completion-content {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.completion-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.completion-content > p {
    color: var(--text-color);
    margin-bottom: 32px;
    line-height: 1.6;
}

#userEmail {
    color: var(--accent-color);
    font-weight: 600;
}

.next-steps {
    background: rgba(167, 170, 187, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.next-steps h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.next-steps ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.next-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-size: 14px;
}

.next-steps li i {
    color: var(--accent-color);
    font-size: 16px;
    width: 20px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    text-align: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(167, 170, 187, 0.3) 50%, transparent 100%);
}

.divider span {
    padding: 0 16px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
    opacity: 0.8;
}

/* Social Signup */
.social-signup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(167, 170, 187, 0.2);
    border-radius: 8px;
    background: linear-gradient(145deg, var(--primary-color) 0%, #fafbfc 100%);
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(6, 6, 6, 0.02);
}

.social-btn:hover {
    background: linear-gradient(145deg, #f8f9fa 0%, var(--primary-color) 100%);
    border-color: rgba(169, 62, 23, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(6, 6, 6, 0.08);
}

.social-btn i {
    font-size: 16px;
}

.google-btn:hover {
    background: linear-gradient(145deg, #fff3f3 0%, var(--primary-color) 100%);
    color: #ea4335;
    border-color: rgba(234, 67, 53, 0.2);
}

.mobile-btn:hover {
    background: linear-gradient(145deg, #f0f8ff 0%, var(--primary-color) 100%);
    color: var(--accent-color);
    border-color: rgba(169, 62, 23, 0.2);
}

/* Login Link */
.login-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

.login-link a {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    transition: all 0.3s ease;
}

.login-link a:hover {
    background: linear-gradient(135deg, #c14920 0%, #1a42b5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-1px);
}

/* Right Side - Branding */
.branding-section {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 50%, #d4582a 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.branding-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    opacity: 0.6;
}

.branding-content {
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.branding-content h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--accent-color);
    border-right: 4px solid var(--accent-secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.loading-overlay p {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
}

/* Error States */
.input-error {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 4px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .branding-content h2 {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stats-section {
        flex-direction: column;
        gap: 16px;
    }
    
    .branding-section {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    .signup-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .branding-section {
        display: none;
    }
    
    .signup-section {
        max-width: 100%;
        padding: 24px;
        order: 1;
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    
    .signup-content {
        padding: 20px 0;
    }
    
    .welcome-header {
        margin-bottom: 24px;
        text-align: center;
    }
    
    .welcome-header h1 {
        font-size: 24px;
    }
    
    .logo-section {
        margin-bottom: 24px;
        justify-content: center;
    }
    
    .logo {
        height: 36px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .steps-indicator {
        margin-bottom: 24px;
    }
    
    .step-title {
        font-size: 11px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .signup-section {
        padding: 20px;
    }
    
    .signup-content {
        padding: 16px 0;
    }
    
    .welcome-header h1 {
        font-size: 22px;
    }
    
    .welcome-header p {
        font-size: 15px;
    }
    
    .input-wrapper input,
    .input-wrapper select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 14px 12px 40px;
    }
    
    .input-icon {
        left: 14px;
    }
    
    .logo {
        height: 32px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .back-btn {
        order: 2;
    }
    
    .next-btn,
    .complete-btn {
        order: 1;
    }
    
    .steps-indicator {
        margin-bottom: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .completion-content {
        padding: 16px 0;
    }
    
    .success-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .success-icon i {
        font-size: 28px;
    }
    
    .next-steps {
        padding: 20px;
        margin-bottom: 24px;
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes inputError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .spinner,
    .success-icon {
        animation: none;
    }
    
    .next-btn,
    .back-btn,
    .complete-btn,
    .social-btn {
        transition: none;
    }
    
    .branding-section {
        animation: none;
    }
}

.signup-section {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer and Edge */
}

.signup-section::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}