/* Базовые стили для переключателей и форм */
        .registration-type {
            text-align: center;
            margin: 20px 0;
            padding: 20px;
            background: #f5f5f5;
            border-radius: 8px;
        }

        .type-option {
            display: inline-block;
            margin: 0 20px;
            cursor: pointer;
            padding: 10px 20px;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

        .type-option input {
            margin-right: 8px;
            cursor: pointer;
        }

        .type-option label {
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
        }

        .type-option:hover {
            background: #e8e8e8;
        }

        .buyer_register, .seller_register {
            max-width: 500px;
            margin: 20px auto;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: none; /* Изначально скрыты */
        }

        .buyer_register.active, .seller_register.active {
            display: block; /* Показываем активную форму */
        }

        .buyer_register {
            background: #e8e8e8;
            border-left: 4px solid #f54900;
        }

        .seller_register {
            background: #e8e8e8;
            border-left: 4px solid #f54900;
        }

        .buyer_register input, .seller_register input {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 14px;
        }

        .buyer_register input:focus, .seller_register input:focus {
            outline: none;
            border-color: #f54900;
            box-shadow: 0 0 5px rgba(76,175,80,0.3);
        }

        .checkbox-group {
            margin: 10px 0;
            display: flex;
            align-items: center;
        }

        .checkbox-group input {
            width: auto;
            margin-right: 10px;
        }

        .register {
            width: 100%;
            padding: 12px;
            background: #f54900;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            margin-top: 15px;
            transition: background 0.3s ease;
        }

        .register:hover {
            background: #d14000;
        }

        .form-title {
            text-align: center;
            margin-bottom: 20px;
            font-size: 20px;
            font-weight: bold;
        }

        .buyer_register .form-title {
            color: #f54900;
        }

        .seller_register .form-title {
            color: #f54900;
        }
        .switch-container {
        text-align: center;
        margin: 30px 0;
    }
    
    .toggle-switch {
        display: inline-flex;
        background: #f0f0f0;
        border-radius: 50px;
        padding: 5px;
        cursor: pointer;
        position: relative;
    }
    
    .toggle-option {
        padding: 10px 30px;
        border-radius: 50px;
        z-index: 2;
        position: relative;
        transition: color 0.3s ease;
        font-weight: bold;
    }
    
    .toggle-switch.active-buyer .toggle-option.buyer,
    .toggle-switch.active-seller .toggle-option.seller {
        color: white;
    }
    
    .toggle-slider {
        position: absolute;
        top: 5px;
        bottom: 5px;
        width: calc(50% - 5px);
        background: #f54900;
        border-radius: 50px;
        transition: transform 0.3s ease;
        z-index: 1;
    }
    
    .toggle-switch.active-buyer .toggle-slider {
        transform: translateX(0);
        background: #f54900;
    }
    
    .toggle-switch.active-seller .toggle-slider {
        transform: translateX(100%);
        background: #f54900;
    }
    .form-group {
        margin-bottom: 15px;
    }

        .form-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            box-sizing: border-box;
        }

            .form-group input:focus {
                outline: none;
                border-color: #f54900;
            }

    .checkbox-group {
        margin: 20px 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .checkbox-group input {
            width: 18px;
            height: 18px;
        }

    .register {
        width: 100%;
        padding: 14px;
        background: #f54900;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
    }

        .register:hover {
            background: #e05f00;
        }

    .buyer_register, .seller_register {
        display: none;
        max-width: 500px;
        margin: 0 auto;
        padding: 30px;
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

        .buyer_register.active, .seller_register.active {
            display: block;
        }

    .switch-container {
        display: flex;
        justify-content: center;
        margin: 30px 0;
    }

    .toggle-switch {
        display: flex;
        background: #f0f0f0;
        border-radius: 40px;
        position: relative;
        cursor: pointer;
        overflow: hidden;
    }

    .toggle-option {
        padding: 12px 30px;
        font-weight: 600;
        z-index: 2;
        transition: color 0.3s;
        cursor: pointer;
    }

    .toggle-slider {
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        background: #f54900;
        border-radius: 40px;
        transition: transform 0.3s;
        z-index: 1;
    }

    .active-buyer .toggle-slider {
        transform: translateX(0);
    }

    .active-seller .toggle-slider {
        transform: translateX(100%);
    }

    .active-buyer .buyer,
    .active-seller .seller {
        color: white;
    }

    .buyer, .seller {
        color: #666;
    }