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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.brand-name {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ffffff, #c0c0c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.step-container.hidden {
    display: none;
}

/* Welcome Screen */
.welcome-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.welcome-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
}

.welcome-header p {
    color: #a1a1aa;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Form Container */
.form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Progress Indicator */
.progress-header {
    text-align: center;
    margin-bottom: 30px;
}

.progress-indicator {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 20px;
    padding: 8px 20px;
    display: inline-block;
}

.step-number {
    color: #60a5fa;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
}

.form-header p {
    color: #a1a1aa;
    font-size: 1rem;
}

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

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

.input-group label {
    font-weight: 500;
    color: #e4e4e7;
    font-size: 0.9rem;
}

.input-group input {
    padding: 16px 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.05);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.input-group small {
    color: #a1a1aa;
    font-size: 0.8rem;
}

/* Button Styles */
.primary-btn, .submit-btn {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-btn:hover, .submit-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.back-btn {
    background: none;
    color: #a1a1aa;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #e4e4e7;
}

.back-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Verification Screen */
.verification-header {
    text-align: center;
    margin-bottom: 40px;
}

.verification-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.verification-header h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.verification-header p {
    color: #a1a1aa;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Plan Selection */
.plan-selection {
    margin: 30px 0;
}

.plan-option {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.plan-option:hover {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.05);
    transform: translateY(-2px);
}

.plan-option.selected {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    box-shadow: 0 0 25px rgba(96, 165, 250, 0.2);
}

.plan-option.popular {
    border-color: #f59e0b;
}

.plan-option.popular.selected {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #000;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.plan-header h4 {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 600;
}

.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #60a5fa;
}

.price span {
    font-size: 1rem;
    color: #a1a1aa;
    font-weight: 500;
}

.savings {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
}

.plan-features {
    list-style: none;
    padding: 0;
}

.plan-features li {
    padding: 6px 0;
    color: #d4d4d8;
    font-size: 0.95rem;
}

/* Loading States */
.loading-container,
.error-container {
    text-align: center;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

.error-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.retry-btn {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-2px);
}

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

/* Button States */
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer p {
    color: #71717a;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e4e4e7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .form-container,
    .welcome-container {
        padding: 30px 25px;
        margin: 0;
    }

    .brand-name {
        font-size: 2rem;
    }

    .logo-container {
        flex-direction: column;
        gap: 10px;
    }

    .plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .action-buttons {
        gap: 12px;
    }
    
    .verification-actions {
        gap: 12px;
    }
    
    .error-actions {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .welcome-header h2 {
        font-size: 1.8rem;
    }

    .form-header h2 {
        font-size: 1.6rem;
    }

    .form-header p,
    .welcome-header p {
        font-size: 0.95rem;
    }

    .plan-option {
        padding: 20px;
    }

    .primary-btn,
    .submit-btn {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .secondary-btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}