:root {
    --primary: #007AFF;
    --primary-hover: #0051D5;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border: #d2d2d7;
    --bg-gray: #f5f5f7;
    --error: #ff3b30;
    --success: #34c759;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    background: #FAFBFC;
}

.auth-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.auth-left::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.illustration-image {
    width: 100%;
    max-width: 400px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.illustration-image svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}



.auth-illustration {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.auth-illustration h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.auth-illustration p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 450px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #FAFBFC;
}

.auth-container {
    width: 100%;
    max-width: 460px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-logo .logo-accent {
    color: var(--primary);
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-dot.active {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    width: 32px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}



.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    animation: slideUp 0.3s ease-out;
    border: 1px solid rgba(0,0,0,0.06);
}

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

.auth-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.progress-bar {
    height: 4px;
    background: var(--bg-gray);
    border-radius: 2px;
    margin-bottom: 28px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5 0%, #7C3AED 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #fff;
}

.form-input:hover {
    border-color: #b3b3b8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary);
    margin-top: 2px;
}

.checkbox-group label {
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.5;
}

.btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}



.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

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

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #e8e8ed;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 15px;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(12px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.terms-modal.active {
    display: flex;
}

.terms-content {
    background: #fff;
    border-radius: 24px;
    padding: 48px;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.terms-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.terms-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 14px;
}

.terms-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    font-size: 16px;
}

.alert {
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: slideDown 0.4s ease;
}

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

.alert-error {
    background: #fff5f5;
    color: var(--error);
    border: 2px solid #ffebeb;
}

.alert-success {
    background: #f0fdf4;
    color: var(--success);
    border: 2px solid #dcfce7;
}

@media (max-width: 968px) {
    .auth-left {
        display: none;
    }
    
    .auth-right {
        flex: 1;
        padding: 40px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 36px 28px;
    }
    
    .auth-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
}
