/* Reset and base 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: #e5e7eb;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

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

.home-button {
    display: inline-block;
    position: relative;
    left: 0;
    margin-top: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background 0.2s, box-shadow 0.2s;
    z-index: 2;
}

/* Header styles */
.header {
    padding: 2rem 0;
    text-align: center;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8fafc;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

/* Main content styles */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.signup-card {
    background: #1e293b;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #334155;
}

.signup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.card-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.description {
    margin-bottom: 2rem;
    text-align: left;
}

.description p {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Form styles */
.signup-form {
    text-align: left;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #475569;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #334155;
    color: #f8fafc;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    background: #475569;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group input[type="email"]::placeholder {
    color: #64748b;
}

.submit-btn {
    width: 100%;
    background: #334155;
    color: #f8fafc;
    border: 2px solid #475569;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: #475569;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.arrow-icon {
    transition: transform 0.3s ease;
    color: #94a3b8;
}

.submit-btn:hover .arrow-icon {
    transform: translateX(4px);
    color: #667eea;
}

/* Success message styles */
.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    background: #10b981;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.success-message h3 {
    color: #10b981;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.success-message p {
    color: #cbd5e1;
}

/* Footer styles */
.footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    color: rgba(148, 163, 184, 0.8);
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-link {
    color: rgba(148, 163, 184, 0.8);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #f8fafc;
}

.footer-copyright p {
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .signup-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    .footer-link {
        display: block;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .signup-card {
        padding: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    .card-header h2 {
        font-size: 1.25rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animation for form appearance */
.signup-card {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for button */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading .arrow-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Dark theme specific enhancements */
.signup-card {
    backdrop-filter: blur(10px);
    background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
}

/* Enhanced shadows for dark theme */
.signup-card {
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.05),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Subtle glow effect on focus */
.form-group input[type="email"]:focus {
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.2),
        0 0 20px rgba(102, 126, 234, 0.1);
}

/* Enhanced button glow for dark theme */
.submit-btn:hover {
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(102, 126, 234, 0.1);
}
