* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Montserrat', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    color: #333;
    line-height: 1.5;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-links {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-links a {
    text-decoration: none;
    color: #2688eb;
}

.breadcrumb-links span {
    color: #777;
}

/* Registration Container */
.registration-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 20px 0;
    margin: 20px 0;
}

.registration-box {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Step Progress */
.step-progress {
    margin-bottom: 40px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
}

.step-indicator::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.step-indicator .progress-bar {
    position: absolute;
    top: 15px;
    left: 0;
    height: 2px;
    background-color: #2688eb;
    z-index: 2;
    transition: width 0.3s ease;
}

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

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: #2688eb;
    color: white;
}

.step.completed .step-number {
    background-color: #2ecc71;
    color: white;
}

.step-text {
    font-size: 14px;
    color: #777;
    text-align: center;
    max-width: 100px;
}

.step.active .step-text {
    color: #2688eb;
    font-weight: 500;
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
.registration-form {
    margin-bottom: 0px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2688eb;
    box-shadow: 0 0 0 3px rgba(38, 136, 235, 0.1);
}

.form-select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #2688eb;
    box-shadow: 0 0 0 3px rgba(38, 136, 235, 0.1);
}

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

.form-row .form-group {
    flex: 1;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input {
    width: 12px;
    height: 12px;
}

.remember-me label {
    color: #555;
    font-size: 14px;
}

.remember-me a {
    color: #2688eb;
    text-decoration: none;
}

.remember-me a:hover {
    text-decoration: underline;
}

.form-navigation {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-prev {
    background-color: #f0f0f0;
    color: #333;
    margin-right: 15px;
}

.btn-prev:hover {
    background-color: #e0e0e0;
}

.btn-next, .btn-submit {
    background-color: #2688eb;
    color: white;
}

.btn-next:hover, .btn-submit:hover {
    background-color: #1a6ec0;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.info-text {
    color: #777;
    font-size: 14px;
    margin-top: 5px;
}

/* Final Step */
.login-subtitle {
    color: #777;
    text-align: left;
    font-size: 14px;
    margin-bottom: 20px;
}

.login-subtitle ul {
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.login-button {
    width: 100%;
    padding: 14px;
    background-color: #2688eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 25px;
}

.login-button:hover {
    background-color: #1a6ec0;
}

.login-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
    color: #777;
    font-size: 14px;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
}

.divider span {
    background-color: white;
    padding: 0 15px;
    position: relative;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.social-button:hover {
    background-color: #f9f9f9;
}

.social-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.social-button.yandex {
    border-color: #fc3f1d;
    color: #fc3f1d;
}

.social-button.yandex:hover {
    background-color: #fff0ee;
}

.social-icon {
    font-size: 18px;
}

/* Alert */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.field-error.visible {
    display: block;
}

.input-error {
    border-color: #dc3545 !important;
}

.checkbox-error {
    background-color: #ffe6e6;
}

.checkbox-error label {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .registration-box {
        padding: 30px 20px;
        margin: 0 15px;
    }

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

    .step-indicator {
        gap: 10px;
    }

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

    .form-navigation {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .btn-prev, .btn-next {
        width: 100%;
        margin-right: 0;
    }
}
