:root {
    --bg-main: #121212;
    --bg-secondary: #1E1E1E;
    --surface: #2A2A2A;
    --surface-hover: #343434;
    --surface-dark: #1a1a1a;
    --surface-blue: rgba(23, 97, 167, 0.15);
    --surface-blue-hover: rgba(23, 97, 167, 0.25);
    --surface-green: rgba(0, 198, 167, 0.1);
    --surface-red: rgba(255, 71, 87, 0.1);

    --text-main: #E0E0E0;
    --text-secondary: #A0A0A0;
    --text-muted: #a0a0a0;
    --text-white: #FFFFFF;

    --primary: #4F8AFF;
    --primary-dark: #3a7cff;
    --accent: #00C6A7;
    --accent-red: #FF4757;
    --blue-accent: #1761A7;

    --radius: 14px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --transition: .3s ease;

    --shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-input: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.page-header {
    text-align: center;
    padding: 60px 0 40px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
    background: var(--text-white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.registration-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 80px;
}

.registration-card {
    background: linear-gradient(145deg, var(--surface) 0%, var(--surface-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 100%;
    transition: all var(--transition);
}

.registration-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 138, 255, 0.2);
}

.registration-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.registration-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

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

.step-number {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: all var(--transition);
}

.step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 0 20px rgba(79, 138, 255, 0.3);
}

.step.completed .step-number {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-white);
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 20px;
}

.step-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--accent);
}

.form-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-section.active {
    display: block;
}

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

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

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

.form-label.required::after {
    content: ' *';
    color: var(--accent-red);
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--text-main);
    font-size: 15px;
    transition: all var(--transition);
    box-shadow: var(--shadow-input);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(79, 138, 255, 0.1);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.form-input.error {
    border-color: var(--accent-red);
    background: var(--surface-red);
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-hint.error {
    color: var(--accent-red);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

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

.checkbox {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

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

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.checkbox-label a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn {
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    box-shadow: 0 8px 20px rgba(79, 138, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(79, 138, 255, 0.4);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    transform: translateY(-2px);
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn i {
    font-size: 18px;
}

.password-strength {
    margin-top: 10px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-red);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak { width: 25%; background: var(--accent-red); }
.password-strength-bar.fair { width: 50%; background: #FFA500; }
.password-strength-bar.good { width: 75%; background: #FFCC00; }
.password-strength-bar.strong { width: 100%; background: var(--accent); }

.password-tips {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.password-tips p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.password-tips ul {
    margin: 0;
    padding-left: 20px;
}

.password-tips li {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.login-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 14px;
}

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

.login-link a:hover {
    color: var(--accent);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .page-header {
        padding: 40px 0 30px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
        padding: 0 16px;
    }

    .registration-card {
        padding: 30px 25px;
    }

    .registration-steps {
        margin-bottom: 30px;
    }

    .step-label {
        font-size: 12px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }

    .registration-card {
        padding: 25px 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-label {
        font-size: 11px;
    }
}

.hidden {
    display: none;
}

.success-message {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    color: white;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
}

.success-text {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.error-message {
    padding: 15px;
    background: var(--surface-red);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-red);
    color: var(--accent-red);
    margin-bottom: 25px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}
